summaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 16adbda28..5788f2717 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -28,7 +28,11 @@
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
+
+#ifdef HAVE_FLOCK
#include <sys/file.h>
+#endif
+
#include <sys/types.h>
#include <time.h>