summaryrefslogtreecommitdiff
path: root/lib/libc/gen/alloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/alloca.c')
-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