Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2017 03:52:17 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324844 - head/sys/sys
Message-ID:  <201710220352.v9M3qHvX028175@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Sun Oct 22 03:52:17 2017
New Revision: 324844
URL: https://svnweb.freebsd.org/changeset/base/324844

Log:
  When building standalone, don't define errno. Let the definition from
  stand.h override. This is similar to what we do in the kernel.
  
  Sponsored by: Netflix

Modified:
  head/sys/sys/errno.h

Modified: head/sys/sys/errno.h
==============================================================================
--- head/sys/sys/errno.h	Sun Oct 22 03:52:12 2017	(r324843)
+++ head/sys/sys/errno.h	Sun Oct 22 03:52:17 2017	(r324844)
@@ -38,7 +38,7 @@
 #ifndef _SYS_ERRNO_H_
 #define _SYS_ERRNO_H_
 
-#ifndef _KERNEL
+#if !defined(_KERNEL) && !defined(_STAND)
 #include <sys/cdefs.h>
 __BEGIN_DECLS
 int *	__error(void);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710220352.v9M3qHvX028175>