summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-30 07:00:42 +0000
committeralfred <alfred@FreeBSD.org>2002-05-30 07:00:42 +0000
commitf0facdc5dd1763536763ab47d1a5bc11e3acd256 (patch)
tree09fd1f8eef7bd8ed2f925fca35c25efa2f242804
parent67d93076d6eb885f73d19f0676224d6b8da33a6b (diff)
downloadFreeBSD-src-f0facdc5dd1763536763ab47d1a5bc11e3acd256.zip
FreeBSD-src-f0facdc5dd1763536763ab47d1a5bc11e3acd256.tar.gz
Check for defined(__i386__) instead of just defined(i386) since the compiler
will be updated to only define(__i386__) for ANSI cleanliness.
-rw-r--r--gnu/usr.bin/gzip/match.S2
-rw-r--r--lib/libc/gmon/gmon.c2
-rw-r--r--usr.bin/gprof/gprof.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/gzip/match.S b/gnu/usr.bin/gzip/match.S
index 6ae8034..2eb114f 100644
--- a/gnu/usr.bin/gzip/match.S
+++ b/gnu/usr.bin/gzip/match.S
@@ -32,7 +32,7 @@
error: DYN_ALLOC not yet supported in match.s
#endif
-#if defined(i386) || defined(_I386)
+#if defined(i386) || defined(_I386) || defined(__i386__)
/* This version is for 386 Unix or OS/2 in 32 bit mode.
* Warning: it uses the AT&T syntax: mov source,dest
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index 49326e5..34dc936 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include "libc_private.h"
-#if defined(__ELF__) && (defined(i386) || defined(__sparc64__))
+#if defined(__ELF__) && (defined(__i386__) || defined(__sparc64__))
extern char *minbrk asm (".minbrk");
#else
extern char *minbrk asm ("minbrk");
diff --git a/usr.bin/gprof/gprof.h b/usr.bin/gprof/gprof.h
index ba3ee34..7214abf 100644
--- a/usr.bin/gprof/gprof.h
+++ b/usr.bin/gprof/gprof.h
@@ -65,7 +65,7 @@
#if luna68k
# include "luna68k.h"
#endif
-#if i386
+#if __i386__
# include "i386.h"
#endif
#if mips
OpenPOWER on IntegriCloud