aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-12-05 21:38:04 +0000
committerWarner Losh <imp@FreeBSD.org>2017-12-05 21:38:04 +0000
commitf38658e1408c4a637d75afabd0222b968cf2ed97 (patch)
tree929db37456aec8e1a8930c7fdb5a960a877edb10 /stand
parent6fd96c93c1ff811e03dc4676c9fde93d11467a20 (diff)
downloadsrc-f38658e1408c4a637d75afabd0222b968cf2ed97.tar.gz
src-f38658e1408c4a637d75afabd0222b968cf2ed97.zip
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
Notes
Notes: svn path=/head/; revision=326590
Diffstat (limited to 'stand')
-rw-r--r--stand/common/load_elf.c2
-rw-r--r--stand/common/load_elf_obj.c4
-rw-r--r--stand/common/reloc_elf.c2
-rw-r--r--stand/efi/loader/main.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
index cccd585860a3..4c1277b71c83 100644
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#include <machine/elf.h>
#include <stand.h>
#define FREEBSD_ELF
-#include <link.h>
+#include <sys/link_elf.h>
#include "bootstrap.h"
diff --git a/stand/common/load_elf_obj.c b/stand/common/load_elf_obj.c
index a32b9fde4b75..57df57a79c79 100644
--- a/stand/common/load_elf_obj.c
+++ b/stand/common/load_elf_obj.c
@@ -33,12 +33,12 @@ __FBSDID("$FreeBSD$");
#include <sys/exec.h>
#include <sys/linker.h>
#include <sys/module.h>
-#include <inttypes.h>
+#include <stdint.h>
#include <string.h>
#include <machine/elf.h>
#include <stand.h>
#define FREEBSD_ELF
-#include <link.h>
+#include <sys/link_elf.h>
#include "bootstrap.h"
diff --git a/stand/common/reloc_elf.c b/stand/common/reloc_elf.c
index 6d4a00ff8f68..22bfe5bccfa6 100644
--- a/stand/common/reloc_elf.c
+++ b/stand/common/reloc_elf.c
@@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$");
#include <stand.h>
#define FREEBSD_ELF
-#include <link.h>
+#include <sys/link_elf.h>
#include "bootstrap.h"
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index 129fd72068ba..f367f292d387 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/reboot.h>
#include <sys/boot.h>
-#include <inttypes.h>
+#include <stdint.h>
#include <stand.h>
#include <string.h>
#include <setjmp.h>