Author: vangyzen
Date: Fri Feb 24 14:37:55 2017
New Revision: 314206
URL: https://svnweb.freebsd.org/changeset/base/314206

Log:
  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

Modified:
  head/include/semaphore.h

Modified: head/include/semaphore.h
==============================================================================
--- head/include/semaphore.h    Fri Feb 24 14:23:46 2017        (r314205)
+++ head/include/semaphore.h    Fri Feb 24 14:37:55 2017        (r314206)
@@ -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 *);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to