From f38658e1408c4a637d75afabd0222b968cf2ed97 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 5 Dec 2017 21:38:04 +0000 Subject: [PATCH] Prefer stdint.h to inttypes.h since the added prototypes form the latter aren't used. Prefer sys/link_elf.h to link.h so we're only dependent on the kernel tree. The default installation of link.h just includes this file, and any benefit from that is outweighed by the hassle it causes. This reduces the footprint of files needed from the system includes (or sysroot in buildworld). Sponsored by: Netflix --- stand/common/load_elf.c | 2 +- stand/common/load_elf_obj.c | 4 ++-- stand/common/reloc_elf.c | 2 +- stand/efi/loader/main.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c index cccd585860a..4c1277b71c8 100644 --- a/stand/common/load_elf.c +++ b/stand/common/load_elf.c @@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include #define FREEBSD_ELF -#include +#include #include "bootstrap.h" diff --git a/stand/common/load_elf_obj.c b/stand/common/load_elf_obj.c index a32b9fde4b7..57df57a79c7 100644 --- a/stand/common/load_elf_obj.c +++ b/stand/common/load_elf_obj.c @@ -33,12 +33,12 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include +#include #include #include #include #define FREEBSD_ELF -#include +#include #include "bootstrap.h" diff --git a/stand/common/reloc_elf.c b/stand/common/reloc_elf.c index 6d4a00ff8f6..22bfe5bccfa 100644 --- a/stand/common/reloc_elf.c +++ b/stand/common/reloc_elf.c @@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$"); #include #define FREEBSD_ELF -#include +#include #include "bootstrap.h" diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 129fd72068b..f367f292d38 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include +#include #include #include #include