summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>2000-01-06 09:05:59 +0000
committerDavid Leonard <d@cvs.openbsd.org>2000-01-06 09:05:59 +0000
commit1ee654d459e1a5f59ac3e435d262fca583bb1471 (patch)
tree82bd0f231987a560876dc0bba09552aa67937d7a /lib
parent8142147ba593d62a0053608180e3978b10711dbd (diff)
well. that wasnt tested very well.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/i386/SYS.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/arch/i386/SYS.h b/lib/libc/arch/i386/SYS.h
index 7e117eca688..b53854a5f60 100644
--- a/lib/libc/arch/i386/SYS.h
+++ b/lib/libc/arch/i386/SYS.h
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: SYS.h,v 1.6 2000/01/06 08:50:35 d Exp $
+ * $OpenBSD: SYS.h,v 1.7 2000/01/06 09:05:58 d Exp $
*/
#include <machine/asm.h>
@@ -78,9 +78,15 @@
#endif /* ! __STDC__ */
#endif /* WEAK_ALIASES */
+#ifdef __STDC__
#define __DO_SYSCALL(x) \
- movl $(__CONCAT(SYS_,x)),%eax; \
+ movl $(SYS_ ## x),%eax; \
int $0x80
+#else /* ! __STDC__ */
+#define __DO_SYSCALL(x) \
+ movl $(SYS_/**/x),%eax; \
+ int $0x80
+#endif /* ! __STDC__ */
/* perform a syscall, set errno */
#define SYSCALL(x) \