From f4b4cf565db77f5296d9ed9ce3a017cc923a08eb Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Fri, 24 Feb 2017 14:37:55 +0000 Subject: [PATCH] Guard sem_clockwait_np() declaration with __BSD_VISIBLE This is a POSIX header file, so keep the namespace clean. Reported by: kib MFC after: 13 days X-MFC with: r314179 Sponsored by: Dell EMC --- include/semaphore.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/semaphore.h b/include/semaphore.h index e220fd2c4da..f880d1581f2 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -59,8 +59,10 @@ int sem_init(sem_t *, int, unsigned int); sem_t *sem_open(const char *, int, ...); int sem_post(sem_t *); int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict); +#if __BSD_VISIBLE int sem_clockwait_np(sem_t * __restrict, __clockid_t, int, const struct timespec *, struct timespec *); +#endif int sem_trywait(sem_t *); int sem_unlink(const char *); int sem_wait(sem_t *);