From 57fe87f2d76771f6f1e981852c63f57075067dae Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 25 Jan 2017 19:16:24 +0000 Subject: [PATCH] MFC r311929: Don't include in reloc_elf.c, as it includes 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()) ^ git-svn-id: svn://svn.freebsd.org/base/stable/10@312771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/boot/common/reloc_elf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/boot/common/reloc_elf.c b/sys/boot/common/reloc_elf.c index 2b60d18b5..6d4a00ff8 100644 --- a/sys/boot/common/reloc_elf.c +++ b/sys/boot/common/reloc_elf.c @@ -33,7 +33,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include #define FREEBSD_ELF -- 2.45.0