summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-03 16:01:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-03 16:01:27 +0000
commit8830fe7e9982f9b8d14c51c96c6e90399c9ee9da (patch)
tree0f076785dede82eb9f2438a46712ce889730715c /sys
parent429c40207453992810de55f3e82b81d92adf71da (diff)
use __sparc__ just in case
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/sunos/exec.h4
-rw-r--r--sys/compat/sunos/sunos.h4
-rw-r--r--sys/kern/kern_exec.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/compat/sunos/exec.h b/sys/compat/sunos/exec.h
index 2b75bb93a29..18ae7ee5e9a 100644
--- a/sys/compat/sunos/exec.h
+++ b/sys/compat/sunos/exec.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.h,v 1.2 1996/08/02 20:35:30 niklas Exp $ */
+/* $OpenBSD: exec.h,v 1.3 1999/06/03 16:01:11 deraadt Exp $ */
/* $NetBSD: exec.h,v 1.4 1994/10/25 23:03:22 deraadt Exp $ */
/*
@@ -40,7 +40,7 @@ struct sunos_exec {
#define SUNOS_M_68020 2 /* runs only on 68020 */
#define SUNOS_M_SPARC 3 /* runs only on SPARC */
-#ifdef sparc
+#ifdef __sparc__
#define SUNOS_M_NATIVE SUNOS_M_SPARC
#else
#define SUNOS_M_NATIVE SUNOS_M_68020
diff --git a/sys/compat/sunos/sunos.h b/sys/compat/sunos/sunos.h
index 6513c044cb6..0392623d402 100644
--- a/sys/compat/sunos/sunos.h
+++ b/sys/compat/sunos/sunos.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sunos.h,v 1.6 1997/02/01 21:49:53 deraadt Exp $ */
+/* $OpenBSD: sunos.h,v 1.7 1999/06/03 16:01:15 deraadt Exp $ */
/* $NetBSD: sunos.h,v 1.8 1996/05/05 16:07:43 veego Exp $ */
#define SUNM_RDONLY 0x01 /* mount fs read-only */
@@ -145,7 +145,7 @@ struct sunos_audio_info {
__BEGIN_DECLS
/* Defined in arch/m68k/m68k/sunos_machdep.c -- sparc uses regular sendsig() */
-#ifndef sparc
+#ifndef __sparc__
void sunos_sendsig __P((sig_t, int, int, u_long, int, union sigval));
#endif
__END_DECLS
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 5e8f9021114..1c21b47cae8 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.27 1999/04/22 19:37:43 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.28 1999/06/03 16:01:26 deraadt Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -381,7 +381,7 @@ sys_execve(p, v, retval)
uvmspace_exec(p);
#else
/* Unmap old program */
-#ifdef sparc
+#ifdef __sparc__
kill_user_windows(p); /* before stack addresses go away */
#endif
/* Kill shared memory and unmap old program */