svn commit: r324844 - head/sys/sys

Warner Losh imp at FreeBSD.org
Sun Oct 22 03:52:19 UTC 2017


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


More information about the svn-src-head mailing list