summaryrefslogtreecommitdiff
path: root/gnulib/import/sys_random.in.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/import/sys_random.in.h')
-rw-r--r--gnulib/import/sys_random.in.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnulib/import/sys_random.in.h b/gnulib/import/sys_random.in.h
index f14ac1f5723..5b9280dda36 100644
--- a/gnulib/import/sys_random.in.h
+++ b/gnulib/import/sys_random.in.h
@@ -1,5 +1,5 @@
/* Substitute for <sys/random.h>.
- Copyright (C) 2020 Free Software Foundation, Inc.
+ Copyright (C) 2020-2021 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -23,6 +23,10 @@
#if @HAVE_SYS_RANDOM_H@
+/* On uClibc, <sys/random.h> assumes prior inclusion of <stddef.h>. */
+# if defined __UCLIBC__
+# include <stddef.h>
+# endif
/* On Mac OS X 10.5, <sys/random.h> assumes prior inclusion of <sys/types.h>.
On Max OS X 10.13, <sys/random.h> assumes prior inclusion of a file that
includes <Availability.h>, such as <stdlib.h> or <unistd.h>. */