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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to