summaryrefslogtreecommitdiff
path: root/src/port/pgsleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/pgsleep.c')
-rw-r--r--src/port/pgsleep.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/port/pgsleep.c b/src/port/pgsleep.c
index ef7f7aba6b..ecefe04ec0 100644
--- a/src/port/pgsleep.c
+++ b/src/port/pgsleep.c
@@ -14,6 +14,9 @@
#include <unistd.h>
#include <sys/time.h>
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
/*
* In a Windows backend, we don't use this implementation, but rather