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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user