diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 7bf7b048a..3a7dd6f4c 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -88,10 +88,12 @@ struct timespec { | |||
88 | #endif /* !HAVE_STRUCT_TIMESPEC */ | 88 | #endif /* !HAVE_STRUCT_TIMESPEC */ |
89 | 89 | ||
90 | #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) | 90 | #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) |
91 | # include <time.h> | ||
91 | int nanosleep(const struct timespec *, struct timespec *); | 92 | int nanosleep(const struct timespec *, struct timespec *); |
92 | #endif | 93 | #endif |
93 | 94 | ||
94 | #ifndef HAVE_UTIMENSAT | 95 | #ifndef HAVE_UTIMENSAT |
96 | # include <time.h> | ||
95 | /* start with the high bits and work down to minimise risk of overlap */ | 97 | /* start with the high bits and work down to minimise risk of overlap */ |
96 | # ifndef AT_SYMLINK_NOFOLLOW | 98 | # ifndef AT_SYMLINK_NOFOLLOW |
97 | # define AT_SYMLINK_NOFOLLOW 0x80000000 | 99 | # define AT_SYMLINK_NOFOLLOW 0x80000000 |