diff options
author | 2018-05-13 16:23:45 +0000 | |
---|---|---|
committer | 2018-05-13 16:23:45 +0000 | |
commit | fd1be291f40256f9d15305bd00f5ee4b8537d53a (patch) | |
tree | 82f4d273b0aa135d3647e2dae3e94ce71b562e8f /lib/libc | |
parent | Add memory barriers to libc's _spinlock() to make the mechanism (diff) | |
download | wireguard-openbsd-fd1be291f40256f9d15305bd00f5ee4b8537d53a.tar.xz wireguard-openbsd-fd1be291f40256f9d15305bd00f5ee4b8537d53a.zip |
Enable futex(2)-based mutex on arm64.
OK mpi@, kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/thread/Makefile.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/thread/Makefile.inc b/lib/libc/thread/Makefile.inc index 075a9b8da17..b155bacffe3 100644 --- a/lib/libc/thread/Makefile.inc +++ b/lib/libc/thread/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.13 2017/11/04 22:53:57 jca Exp $ +# $OpenBSD: Makefile.inc,v 1.14 2018/05/13 16:23:45 visa Exp $ .PATH: ${LIBCSRCDIR}/thread @@ -19,7 +19,8 @@ notyet= rthread_condattr_clock.c \ spinlock.c \ spinlocktry.c -.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \ +.if ${MACHINE_ARCH} == "aarch64" || \ + ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \ ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" CFLAGS+= -DFUTEX SRCS+= rthread_mutex.c \ |