]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r311929:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Jan 2017 19:16:24 +0000 (19:16 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Jan 2017 19:16:24 +0000 (19:16 +0000)
commit57fe87f2d76771f6f1e981852c63f57075067dae
tree2178ae275267678bcd37ee15c11d18f6b3d2553e
parentb686383042cb673c73d1cf548eac8431e6aafbfd
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())
                                      ^

git-svn-id: svn://svn.freebsd.org/base/stable/10@312771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/boot/common/reloc_elf.c