summaryrefslogtreecommitdiff
path: root/config/gr_pwin32.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/gr_pwin32.m4')
-rw-r--r--config/gr_pwin32.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/config/gr_pwin32.m4 b/config/gr_pwin32.m4
index 7b99cba6b..495e9dd4d 100644
--- a/config/gr_pwin32.m4
+++ b/config/gr_pwin32.m4
@@ -99,6 +99,9 @@ struct timespec {
long tv_nsec;
};
#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
static inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); }
#endif