Enable the use of futex(2) in librthread on mips64.
authorvisa <visa@openbsd.org>
Tue, 4 Jul 2017 14:33:43 +0000 (14:33 +0000)
committervisa <visa@openbsd.org>
Tue, 4 Jul 2017 14:33:43 +0000 (14:33 +0000)
OK mpi@, deraadt@

lib/librthread/Makefile

index 741025e..5f44aff 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.46 2017/06/01 10:59:23 mpi Exp $
+#      $OpenBSD: Makefile,v 1.47 2017/07/04 14:33:43 visa Exp $
 
 LIB=pthread
 LIBCSRCDIR=    ${.CURDIR}/../libc
@@ -42,7 +42,8 @@ SRCS= rthread.c \
        rthread_tls.c \
        sched_prio.c
 
-.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
+    ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
 CFLAGS+= -DFUTEX
 SRCS+= rthread_mutex.c \
        rthread_cond.c