diff options
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 323a4550b2..51fb5c1d83 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -6,6 +6,9 @@ #include "ruby/encoding.h" #include <math.h> #include <time.h> +#if defined(HAVE_SYS_TIME_H) +#include <sys/time.h> +#endif #define NDEBUG #include <assert.h> |