aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6ae803493c64..2eb114f9d22b 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 49326e5108ea..34dc9360a766 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 ba3ee34a1de2..7214abff5c41 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