summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuediger Meier2016-02-18 03:18:38 +0100
committerRuediger Meier2016-02-18 16:54:38 +0100
commit440d1db7b0900b26a301f9ec0e28d391e90b3673 (patch)
tree172564b59cdae2a4cb2da47ea4aae33799ab9e09
parentlibblkid: don't include endian.h (diff)
downloadkernel-qcow2-util-linux-440d1db7b0900b26a301f9ec0e28d391e90b3673.tar.gz
kernel-qcow2-util-linux-440d1db7b0900b26a301f9ec0e28d391e90b3673.tar.xz
kernel-qcow2-util-linux-440d1db7b0900b26a301f9ec0e28d391e90b3673.zip
include: fix sys/sysinfo.h
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
-rw-r--r--lib/monotonic.c2
-rw-r--r--lib/timer.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/monotonic.c b/lib/monotonic.c
index 372cc9c5a..bb58e15d7 100644
--- a/lib/monotonic.c
+++ b/lib/monotonic.c
@@ -4,7 +4,9 @@
*/
#include <time.h>
#include <signal.h>
+#ifdef HAVE_SYSINFO
#include <sys/sysinfo.h>
+#endif
#include <sys/time.h>
#include "c.h"
diff --git a/lib/timer.c b/lib/timer.c
index 0ad0cad78..62656932a 100644
--- a/lib/timer.c
+++ b/lib/timer.c
@@ -5,7 +5,6 @@
*/
#include <time.h>
#include <signal.h>
-#include <sys/sysinfo.h>
#include <sys/time.h>
#include "c.h"