aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/errno.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-22 03:52:17 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-22 03:52:17 +0000
commit4b32ccfd81e12aa2fca85c00e31e0ecac95f31a7 (patch)
treea2e319031e8a0ac6dea960a08ee0f03e2561cda0 /sys/sys/errno.h
parentcee8ef91e352566ac4515aeeab8706c2a180dbf9 (diff)
downloadsrc-4b32ccfd81e12aa2fca85c00e31e0ecac95f31a7.tar.gz
src-4b32ccfd81e12aa2fca85c00e31e0ecac95f31a7.zip
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
Notes
Notes: svn path=/head/; revision=324844
Diffstat (limited to 'sys/sys/errno.h')
-rw-r--r--sys/sys/errno.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/errno.h b/sys/sys/errno.h
index 97fe1bdb63db..52e5a1d91511 100644
--- a/sys/sys/errno.h
+++ b/sys/sys/errno.h
@@ -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);