]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix ifdefs to not mask needed bits.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 28 Oct 2019 10:19:47 +0000 (21:19 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 28 Oct 2019 10:19:47 +0000 (21:19 +1100)
openbsd-compat/bsd-misc.h

index 23c18d67615e015fb7e3c6397e4003fe9704fb2d..f5b032bbcb09bfe42fbe9398db2c2e071fc72d7e 100644 (file)
@@ -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