summaryrefslogtreecommitdiff
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
parent61c107381ffbef191e4c98cc033693483dbd14b4 (diff)
downloads6-linux-utils-8858706cde77be9bd0aff0f241a3f03eb8056c95.tar.xz
Fix build issue with old glibc
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-rw-r--r--AUTHORS1
-rw-r--r--src/s6-linux-utils/rngseed.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 11f9c99..2441c9e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -5,6 +5,7 @@ Contributors:
Eric Le Bihan <eric.le.bihan.dev@free.fr>
Mira Ressel <aranea@aixah.de>
John Regan <john@jrjrtech.com>
+ Fabrice Fontaine <fontaine.fabrice@gmail.com>
Thanks to:
Dan J. Bernstein <djb@cr.yp.to>
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>