diff options
author | 2020-02-06 03:13:45 +0000 | |
---|---|---|
committer | 2020-02-06 03:13:45 +0000 | |
commit | 2ee00db36bd4c31e23829424e9f44f4dbb4646f4 (patch) | |
tree | 8a75113dd715af998ac9443223962d305c6f3a73 /lib/libc | |
parent | Ooops. Missed a file in nuke of scsi_minphys. mpath_minphys() needs to (diff) | |
download | wireguard-openbsd-2ee00db36bd4c31e23829424e9f44f4dbb4646f4.tar.xz wireguard-openbsd-2ee00db36bd4c31e23829424e9f44f4dbb4646f4.zip |
Instead of opting in to futexes on archs with atomics opt out on archs
without atomics, a smaller list.
ok mpi@ visa@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/thread/Makefile.inc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/libc/thread/Makefile.inc b/lib/libc/thread/Makefile.inc index d94de6ee9ff..bc9edd58c5e 100644 --- a/lib/libc/thread/Makefile.inc +++ b/lib/libc/thread/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.18 2018/10/21 17:07:24 visa Exp $ +# $OpenBSD: Makefile.inc,v 1.19 2020/02/06 03:13:45 jsg Exp $ .PATH: ${LIBCSRCDIR}/thread @@ -19,16 +19,13 @@ notyet= rthread_condattr_clock.c \ spinlock.c \ spinlocktry.c -.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "alpha" || \ - ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm" || \ - ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "mips64" || \ - ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "powerpc" || \ - ${MACHINE_ARCH} == "sparc64" +.if ${MACHINE_ARCH} == "hppa" || ${MACHINE_ARCH} == "m88k" || \ + ${MACHINE_ARCH} == "sh" +SRCS+= rthread_sync.c +.else CFLAGS+= -DFUTEX SRCS+= rthread_mutex.c \ rthread_cond.c -.else -SRCS+= rthread_sync.c .endif .if defined(NOPIC) |