From: Darren Tucker Date: Mon, 28 Oct 2019 10:19:47 +0000 (+1100) Subject: Fix ifdefs to not mask needed bits. X-Git-Tag: V_8_2_P1~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe81da22652f8caa63e9e3a1af519a85d36337e;p=thirdparty%2Fopenssh-portable.git Fix ifdefs to not mask needed bits. --- diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 23c18d676..f5b032bbc 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