summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-02-11 00:03:08 +0000
committerderaadt <deraadt@openbsd.org>2004-02-11 00:03:08 +0000
commit54158692187870b1e41f331b1a356abbee3b03ca (patch)
tree75d8b7f64e46d40eb82b99c8c9fda17b4cf98ac3 /lib/libc
parent+ bgpd.conf (diff)
downloadwireguard-openbsd-54158692187870b1e41f331b1a356abbee3b03ca.tar.xz
wireguard-openbsd-54158692187870b1e41f331b1a356abbee3b03ca.zip
amd64 would use negative stack direction, if it used this file; millert ok
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/alloca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/alloca.c b/lib/libc/gen/alloca.c
index 0855700596a..41b38c00050 100644
--- a/lib/libc/gen/alloca.c
+++ b/lib/libc/gen/alloca.c
@@ -40,7 +40,8 @@ typedef void *pointer;
#if defined(__alpha__) || defined(__m68k__) || defined(__i386__) || \
defined(__m88k__) || defined(__mips__) || defined(__powerpc__) || \
- defined(__sparc__) || defined(__sparc64__) || defined(__vax__)
+ defined(__sparc__) || defined(__sparc64__) || defined(__vax__) || \
+ defined(__x86_64__)
# define STACK_DIRECTION -1
#elif defined(__hppa__)
# define STACK_DIRECTION 1