summaryrefslogtreecommitdiff
path: root/src/shared/random-util.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-06-02 17:24:34 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2015-06-02 17:24:34 +0200
commit9e89eb2478f61d36c5ff11504f7d889403585ce0 (patch)
treec6b034336bca340f437098a0a2aa8489fc759ba1 /src/shared/random-util.c
parent361d5b41a5efd13ff926279a866d050bb276a58e (diff)
parenta67dab3490db5d88e2ab8a29a04c1a8a7026589b (diff)
Merge pull request #8 from systemd-mailing-devs/1433236059-9824-1-git-send-email-m.olbrich@pengutronix.de
random-util: guard including sys/auxv.h with the corresponding ifdef …
Diffstat (limited to 'src/shared/random-util.c')
-rw-r--r--src/shared/random-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/random-util.c b/src/shared/random-util.c
index 88f5182508..b230044f50 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"