Fix ifdefs to not mask needed bits.

This commit is contained in:
Darren Tucker 2019-10-28 21:19:47 +11:00
parent 7694e9d2fb
commit 5fe81da226

View File

@ -85,6 +85,7 @@ struct timespec {
time_t tv_sec; time_t tv_sec;
long tv_nsec; long tv_nsec;
}; };
#endif /* !HAVE_STRUCT_TIMESPEC */
#if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP) #if !defined(HAVE_NANOSLEEP) && !defined(HAVE_NSLEEP)
int nanosleep(const struct timespec *, struct timespec *); 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); int utimensat(int, const char *, const struct timespec[2], int);
#endif /* !HAVE_UTIMENSAT */ #endif /* !HAVE_UTIMENSAT */
#endif /* !HAVE_STRUCT_TIMESPEC */
#ifndef HAVE_USLEEP #ifndef HAVE_USLEEP
int usleep(unsigned int useconds); int usleep(unsigned int useconds);
#endif #endif