diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2019-02-09 03:51:51 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2019-02-09 03:51:51 +0000 |
commit | a7f67facdf8ecf777167afbb6e680a55574502e5 (patch) | |
tree | b7fad548a703cf9e1c48dfe33361af57b114336d /sys/sys | |
parent | 7d3df83cfa4864534c167a3f9b5d140557f8981d (diff) | |
download | src-a7f67facdf8ecf777167afbb6e680a55574502e5.tar.gz src-a7f67facdf8ecf777167afbb6e680a55574502e5.zip |
Normalize the declaration of i386_read_exec variable.
It is currently re-declared in sys/sysent.h which is a wrong place for
MD variable. Which causes redeclaration error with gcc when
sys/sysent.h and machine/md_var.h are included both.
Remove it from sys/sysent.h and instead include machine/md_var.h when
needed, under #ifdef for both i386 and amd64.
Reported and tested by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=343928
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/sysent.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h index 434b69b2f4e3..3afaf01449c5 100644 --- a/sys/sys/sysent.h +++ b/sys/sys/sysent.h @@ -163,10 +163,6 @@ extern struct sysentvec aout_sysvec; extern struct sysent sysent[]; extern const char *syscallnames[]; -#if defined(__amd64__) -extern int i386_read_exec; -#endif - #define NO_SYSCALL (-1) struct module; |