[systemd-devel] [PATCH] random-util: guard including sys/auxv.h with the corresponding ifdef check
Michael Olbrich
m.olbrich at pengutronix.de
Tue Jun 2 02:07:39 PDT 2015
---
src/shared/random-util.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/shared/random-util.c b/src/shared/random-util.c
index 88f5182508e7..b230044f5099 100644
--- a/src/shared/random-util.c
+++ b/src/shared/random-util.c
@@ -23,7 +23,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
+#ifdef HAVE_SYS_AUXV_H
#include <sys/auxv.h>
+#endif
#include <linux/random.h>
#include "random-util.h"
--
2.1.4
More information about the systemd-devel
mailing list