summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2012-09-01 09:55:50 +0000
committermiod <miod@openbsd.org>2012-09-01 09:55:50 +0000
commitef5166bea13ee6b80f4061aaf443ad42735210eb (patch)
tree9189538b753a93ffe52b4260e33c02176876437f /lib/libc
parentDocument that systrace fds, like kqueues, cannot be shared. (diff)
downloadwireguard-openbsd-ef5166bea13ee6b80f4061aaf443ad42735210eb.tar.xz
wireguard-openbsd-ef5166bea13ee6b80f4061aaf443ad42735210eb.zip
Make this __STDC__ aware.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/m68k/sys/sigreturn.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/arch/m68k/sys/sigreturn.S b/lib/libc/arch/m68k/sys/sigreturn.S
index ed094b0d3bb..086230173d9 100644
--- a/lib/libc/arch/m68k/sys/sigreturn.S
+++ b/lib/libc/arch/m68k/sys/sigreturn.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigreturn.S,v 1.7 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: sigreturn.S,v 1.8 2012/09/01 09:55:50 miod Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -40,10 +40,17 @@
#ifdef PROF
#undef ENTRY
/* XXX should bring into line with __ENTRY in SYS.h */
+#ifdef __STDC__
+#define ENTRY(x) \
+ .globl _##x; .even; _##x:; moveml _IMMEDIATE_ 0xC0C0,sp@-; .data; \
+ PROF##x:; .long 0; .text; lea PROF##x,a0; jbsr mcount; \
+ moveml sp@+,_IMMEDIATE_ 0x0303
+#else
#define ENTRY(x) \
.globl _/**/x; .even; _/**/x:; moveml #0xC0C0,sp@-; .data; \
PROF/**/x:; .long 0; .text; lea PROF/**/x,a0; jbsr mcount; \
moveml sp@+,#0x0303
+#endif
#endif /* PROF */
SYSENTRY(sigreturn)