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
This commit is contained in:
parent
6fd96c93c1
commit
f38658e140
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326590
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <stand.h>
|
||||
|
||||
#define FREEBSD_ELF
|
||||
#include <link.h>
|
||||
#include <sys/link_elf.h>
|
||||
|
||||
#include "bootstrap.h"
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user