random-util: guard including sys/auxv.h with the corresponding ifdef check
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 2 Jun 2015 09:07:39 +0000 (11:07 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 2 Jun 2015 10:03:20 +0000 (12:03 +0200)
src/shared/random-util.c

index 88f5182..b230044 100644 (file)
@@ -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"