From owner-svn-src-all@freebsd.org Fri Feb 24 14:37:56 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D9E0CEB2CB; Fri, 24 Feb 2017 14:37:56 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A9EE2D2; Fri, 24 Feb 2017 14:37:56 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1OEbtG7095822; Fri, 24 Feb 2017 14:37:55 GMT (envelope-from vangyzen@FreeBSD.org) Received: (from vangyzen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1OEbttr095821; Fri, 24 Feb 2017 14:37:55 GMT (envelope-from vangyzen@FreeBSD.org) Message-Id: <201702241437.v1OEbttr095821@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vangyzen set sender to vangyzen@FreeBSD.org using -f From: Eric van Gyzen Date: Fri, 24 Feb 2017 14:37:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314206 - head/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2017 14:37:56 -0000 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 *);