aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-02-23 12:12:00 +0000
committerLaurent Bercot <ska@appnovation.com>2023-02-23 12:12:00 +0000
commit8858706cde77be9bd0aff0f241a3f03eb8056c95 (patch)
treeb103b47b250e8ce55a77328f639a63880c2d6235 /src
parent61c107381ffbef191e4c98cc033693483dbd14b4 (diff)
downloads6-linux-utils-8858706cde77be9bd0aff0f241a3f03eb8056c95.tar.gz
Fix build issue with old glibc
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/s6-linux-utils/rngseed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s6-linux-utils/rngseed.c b/src/s6-linux-utils/rngseed.c
index 2b1772c..223f50a 100644
--- a/src/s6-linux-utils/rngseed.c
+++ b/src/s6-linux-utils/rngseed.c
@@ -12,7 +12,9 @@
#include <unistd.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
+#ifdef SKALIBS_HASGETRANDOM
#include <sys/random.h>
+#endif
#include <linux/random.h>
#include <skalibs/types.h>