From owner-svn-src-head@freebsd.org Thu Mar 30 06:24:32 2017 Return-Path: Delivered-To: svn-src-head@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 4F5A5D2599E; Thu, 30 Mar 2017 06:24:32 +0000 (UTC) (envelope-from kib@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 1CA24C22; Thu, 30 Mar 2017 06:24:32 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2U6OVpw011678; Thu, 30 Mar 2017 06:24:31 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2U6OV9n011677; Thu, 30 Mar 2017 06:24:31 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201703300624.v2U6OV9n011677@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Thu, 30 Mar 2017 06:24:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316258 - head/sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Mar 2017 06:24:32 -0000 Author: kib Date: Thu Mar 30 06:24:30 2017 New Revision: 316258 URL: https://svnweb.freebsd.org/changeset/base/316258 Log: Only activate __EXT1_VISIBLE block when using sys/errno.h in userspace. The prerequisite for '#if __EXT1_VISIBLE' functionality is the inclusion of sys/cdefs.h. errno.h only auto-includes the header for non-kernel environment, and EXT1 block only useful for non-kernel as well. Reported by: lwhsu Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Modified: head/sys/sys/errno.h Modified: head/sys/sys/errno.h ============================================================================== --- head/sys/sys/errno.h Thu Mar 30 06:20:58 2017 (r316257) +++ head/sys/sys/errno.h Thu Mar 30 06:24:30 2017 (r316258) @@ -193,6 +193,7 @@ __END_DECLS #define ERELOOKUP (-5) /* retry the directory lookup */ #endif +#ifndef _KERNEL #if __EXT1_VISIBLE /* ISO/IEC 9899:2011 K.3.2.2 */ #ifndef _ERRNO_T_DEFINED @@ -200,5 +201,6 @@ __END_DECLS typedef int errno_t; #endif #endif /* __EXT1_VISIBLE */ +#endif #endif