Problem reported by Fabrice Fontaine in:
https://lists.gnu.org/r/bug-gnulib/2021-11/msg00043.html
* lib/sys_random.in.h [HAVE_SYS_RANDOM_H && !__GLIBC__ && __UCLIBC__]:
Include <stddef.h>, in case this file is included before
__UCLIBC__ is defined.
+2021-11-30 Paul Eggert <eggert@cs.ucla.edu>
+
+ sys_random: port better to uClibc < 1.0.35
+ Problem reported by Fabrice Fontaine in:
+ https://lists.gnu.org/r/bug-gnulib/2021-11/msg00043.html
+ * lib/sys_random.in.h [HAVE_SYS_RANDOM_H && !__GLIBC__ && __UCLIBC__]:
+ Include <stddef.h>, in case this file is included before
+ __UCLIBC__ is defined.
+
2021-11-27 Paul Eggert <eggert@cs.ucla.edu>
gettext-h: document GNULIB_NO_VLA
#if @HAVE_SYS_RANDOM_H@
-/* On uClibc, <sys/random.h> assumes prior inclusion of <stddef.h>. */
-# if defined __UCLIBC__
+/* On uClibc < 1.0.35, <sys/random.h> assumes prior inclusion of <stddef.h>.
+ Do not use __UCLIBC__ here, as it might not be defined yet.
+ But avoid namespace pollution on glibc systems. */
+# ifndef __GLIBC__
# include <stddef.h>
# endif
/* On Mac OS X 10.5, <sys/random.h> assumes prior inclusion of <sys/types.h>.