summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/bsd-misc.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-10-28 21:19:47 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-10-28 21:19:47 +1100
commit5fe81da22652f8caa63e9e3a1af519a85d36337e (patch)
treef36b7e424bf3c264f41b9a142826c5d057e91feb /openbsd-compat/bsd-misc.h
parent7694e9d2fb5785bbdd0920dce7a160bd79feaf00 (diff)
Fix ifdefs to not mask needed bits.
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r--openbsd-compat/bsd-misc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 23c18d67..f5b032bb 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -85,6 +85,7 @@ struct timespec {
time_t tv_sec;
long tv_nsec;
};
+#endif /* !HAVE_STRUCT_TIMESPEC */
#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP)
int nanosleep(const struct timespec *, struct timespec *);
@@ -98,8 +99,6 @@ int nanosleep(const struct timespec *, struct timespec *);
int utimensat(int, const char *, const struct timespec[2], int);
#endif /* !HAVE_UTIMENSAT */
-#endif /* !HAVE_STRUCT_TIMESPEC */
-
#ifndef HAVE_USLEEP
int usleep(unsigned int useconds);
#endif