Commit 77874cb2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

compat: missing #include

parent 8f629e45
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
#ifndef _POSIX_TIMERS #ifndef _POSIX_TIMERS
#define _POSIX_TIMERS (-1) #define _POSIX_TIMERS (-1)
#endif #endif
#if (_POSIX_TIMERS <= 0)
# include <sys/time.h> /* gettimeofday() */
#endif
int timespec_get(struct timespec *ts, int base) int timespec_get(struct timespec *ts, int base)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment