summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/sys
diff options
context:
space:
mode:
authord <d@openbsd.org>2000-10-04 05:55:33 +0000
committerd <d@openbsd.org>2000-10-04 05:55:33 +0000
commit789060e356dc0d45ff8b10b23e67fb240c40e245 (patch)
tree433c497a393444dcea2ecdd760f9bc499789e5b2 /lib/libpthread/sys
parentif fstat fails fails, as it will on some sockets, close anyway. (diff)
downloadwireguard-openbsd-789060e356dc0d45ff8b10b23e67fb240c40e245.tar.xz
wireguard-openbsd-789060e356dc0d45ff8b10b23e67fb240c40e245.zip
switch to _machdep_switch() instead of setjmp/longjmp. For some reason this fixes sparc threads.
Diffstat (limited to 'lib/libpthread/sys')
-rw-r--r--lib/libpthread/sys/Makefile.inc14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc
index 91c5982d309..85598b38d38 100644
--- a/lib/libpthread/sys/Makefile.inc
+++ b/lib/libpthread/sys/Makefile.inc
@@ -1,12 +1,16 @@
-# $Id: Makefile.inc,v 1.5 2000/01/06 07:11:41 d Exp $
-# $OpenBSD: Makefile.inc,v 1.5 2000/01/06 07:11:41 d Exp $
+# $Id: Makefile.inc,v 1.6 2000/10/04 05:55:35 d Exp $
+# $OpenBSD: Makefile.inc,v 1.6 2000/10/04 05:55:35 d Exp $
.PATH: ${LIBC_RSRCDIR}/sys ${LIBC_RSRCDIR}/arch/${MACHINE_ARCH}
-SRCS+= uthread_error.c _atomic_lock.c slow_atomic_lock.c
+SRCS+= uthread_error.c
+SRCS+= _atomic_lock.c slow_atomic_lock.c
-.if exists(${LIBC_RSRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep.S)
-SRCS+= uthread_machdep.S
+.if exists(${LIBC_RSRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep_asm.S)
+SRCS+= uthread_machdep_asm.S
+.endif
+.if exists(${LIBC_RSRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep.c)
+SRCS+= uthread_machdep.c
.endif
.if (${LIB} == "c_r")