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"