diff options
author | 2000-01-06 09:05:58 +0000 | |
---|---|---|
committer | 2000-01-06 09:05:58 +0000 | |
commit | 650bc0853afebb55d5fa4fe9379f36ba57822c6e (patch) | |
tree | bd6b1681aefffad0d2bc5b7aff34d282ae1a8d1b | |
parent | add __weak_alias() macro (diff) | |
download | wireguard-openbsd-650bc0853afebb55d5fa4fe9379f36ba57822c6e.tar.xz wireguard-openbsd-650bc0853afebb55d5fa4fe9379f36ba57822c6e.zip |
well. that wasnt tested very well.
-rw-r--r-- | lib/libc/arch/i386/SYS.h | 10 |
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) \ |