From c33459519d23d08a2219d4162371e8186b89fa47 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Mon, 12 Mar 2012 11:04:10 +0100 Subject: [PATCH] Don't include linux-specific headers. They are unnecessary and plus lead to build failure on non-Linux architectures. --- src/conf.h | 2 ++ src/volume.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/conf.h b/src/conf.h index 07a8810..c43f598 100644 --- a/src/conf.h +++ b/src/conf.h @@ -23,7 +23,9 @@ # define CONF_SERVICE_XPATH "//configuration/services/service[@id='%s']/%s" # define CONF_USER_MAXLEN 32 # include +#ifdef __linux__ # include +#endif # include # ifndef PATH_MAX # define PATH_MAX 4096 diff --git a/src/volume.c b/src/volume.c index d54ee72..1b8fe86 100644 --- a/src/volume.c +++ b/src/volume.c @@ -21,7 +21,9 @@ #include #include #include +#ifndef __GNU__ #include +#endif #include "mem.h" #include "conf.h" #include "log.h"