diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-23 12:12:00 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-02-23 12:12:00 +0000 |
commit | 8858706cde77be9bd0aff0f241a3f03eb8056c95 (patch) | |
tree | b103b47b250e8ce55a77328f639a63880c2d6235 | |
parent | 61c107381ffbef191e4c98cc033693483dbd14b4 (diff) | |
download | s6-linux-utils-8858706cde77be9bd0aff0f241a3f03eb8056c95.tar.xz |
Fix build issue with old glibc
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/s6-linux-utils/rngseed.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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> |