summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2017-01-25 19:16:24 +0000
committerdim <dim@FreeBSD.org>2017-01-25 19:16:24 +0000
commit5bf9dad6e5891374fcc29e7dd723455d287e9330 (patch)
tree2178ae275267678bcd37ee15c11d18f6b3d2553e /sys/boot
parentaf7ada314f5c33fe09af79b74bde7e0d2594a449 (diff)
downloadFreeBSD-src-5bf9dad6e5891374fcc29e7dd723455d287e9330.zip
FreeBSD-src-5bf9dad6e5891374fcc29e7dd723455d287e9330.tar.gz
MFC r311929:
Don't include <errno.h> in reloc_elf.c, as it includes <stand.h> just after it, which has a conflicting definition of errno. This leads to the following warning with clang 4.0.0: In file included from sys/boot/common/reloc_elf32.c:6: In file included from sys/boot/common/reloc_elf.c:37: /usr/obj/usr/src/tmp/usr/include/stand.h:155:12: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] extern int errno; ^ sys/sys/errno.h:46:26: note: expanded from macro 'errno' #define errno (* __error()) ^
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/reloc_elf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/boot/common/reloc_elf.c b/sys/boot/common/reloc_elf.c
index 2b60d18..6d4a00f 100644
--- a/sys/boot/common/reloc_elf.c
+++ b/sys/boot/common/reloc_elf.c
@@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <machine/elf.h>
-#include <errno.h>
#include <stand.h>
#define FREEBSD_ELF
OpenPOWER on IntegriCloud