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
This commit is contained in:
Eric van Gyzen 2017-02-24 14:37:55 +00:00
parent 797046eebb
commit f4b4cf565d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=314206

View File

@ -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 *);