summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 1bc362fb97..a3b136ab63 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -21,6 +21,9 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
#include <stdarg.h>
#ifndef NULL_REP_IS_ZERO_BYTES