aboutsummaryrefslogtreecommitdiffstats
path: root/src/data-fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data-fd.c')
-rw-r--r--src/data-fd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data-fd.c b/src/data-fd.c
index 779202e2..388b45cc 100644
--- a/src/data-fd.c
+++ b/src/data-fd.c
@@ -25,7 +25,9 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
-#include <sys/types.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
#include "debug.h"
#include "data.h"