+2018-06-23 Bruno Haible <bruno@clisp.org>
+
+ libc-config: Fix conflict with FreeBSD include files.
+ * lib/cdefs.h (__nonnull): Remove definition.
+ * lib/libc-config.h (__nonnull): Remove undefinition.
+
2018-06-21 Paul Eggert <eggert@cs.ucla.edu>
random_r: do not crash if state is unaligned
# define __attribute_format_strfmon__(a,b) /* Ignore */
#endif
-/* The nonull function attribute allows to mark pointer parameters which
- must not be NULL. */
-#if __GNUC_PREREQ (3,3)
-# define __nonnull(params) __attribute__ ((__nonnull__ params))
-#else
-# define __nonnull(params)
-#endif
+/* The nonnull function attribute allows to mark pointer parameters which
+ must not be NULL.
+ In Gnulib we use the macro _GL_ARG_NONNULL instead of __nonnull, because
+ __nonnull is defined in an incompatible way in FreeBSD's include files. */
/* If fortification mode, we warn about unused results of certain
function calls which can lead to problems. */