summaryrefslogtreecommitdiffstats
path: root/sys/sys/linker.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-29 04:46:21 +0000
committerpeter <peter@FreeBSD.org>1999-12-29 04:46:21 +0000
commit15b9bcb121e1f3735a2c98a11afdb52a03301d7e (patch)
treee999c95eb5db56737efc17feeb385a77941021bb /sys/sys/linker.h
parent9ed7cb48bf4a00a23e7489706b0effe1c516cb5b (diff)
downloadFreeBSD-src-15b9bcb121e1f3735a2c98a11afdb52a03301d7e.zip
FreeBSD-src-15b9bcb121e1f3735a2c98a11afdb52a03301d7e.tar.gz
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
Diffstat (limited to 'sys/sys/linker.h')
-rw-r--r--sys/sys/linker.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/linker.h b/sys/sys/linker.h
index 407aba1..8a1446f 100644
--- a/sys/sys/linker.h
+++ b/sys/sys/linker.h
@@ -29,7 +29,7 @@
#ifndef _SYS_LINKER_H_
#define _SYS_LINKER_H_
-#ifdef KERNEL
+#ifdef _KERNEL
#include <machine/elf.h>
@@ -198,7 +198,7 @@ int linker_ddb_search_symbol(caddr_t value, c_linker_sym_t *sym, long *diffp);
int linker_ddb_symbol_values(c_linker_sym_t sym, linker_symval_t *symval);
-#endif /* KERNEL */
+#endif /* _KERNEL */
/*
* Module information subtypes
@@ -221,7 +221,7 @@ int linker_ddb_symbol_values(c_linker_sym_t sym, linker_symval_t *symval);
#define MODINFOMD_DEPLIST (0x4001 | MODINFOMD_NOCOPY) /* depends on */
-#ifdef KERNEL
+#ifdef _KERNEL
/*
* Module lookup
@@ -257,7 +257,7 @@ int elf_reloc(linker_file_t lf, const void *rel, int type, const char *sym);
#define ELF_RELOC_REL 1
#define ELF_RELOC_RELA 2
-#endif /* KERNEL */
+#endif /* _KERNEL */
struct kld_file_stat {
int version; /* set to sizeof(linker_file_stat) */
@@ -276,7 +276,7 @@ struct kld_sym_lookup {
};
#define KLDSYM_LOOKUP 1
-#ifndef KERNEL
+#ifndef _KERNEL
#include <sys/cdefs.h>
OpenPOWER on IntegriCloud