summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.c b/util.c
index 09e4a013c6..a5049a72f4 100644
--- a/util.c
+++ b/util.c
@@ -93,6 +93,9 @@ int *retlen;
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if defined(HAVE_FCNTL)
+#include <fcntl.h>
+#endif
#ifndef S_ISDIR
# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)