summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2004-02-06 01:52:00 +0000
committerbrad <brad@openbsd.org>2004-02-06 01:52:00 +0000
commitaaeab30f948f47e59b3c4f700fdaa1755d895c59 (patch)
tree7f26e41f9a3a463481dc64d0bbcd8a9b67960762 /lib/libpthread
parentsome cpus start to have a NX oriented PGEX_I (diff)
downloadwireguard-openbsd-aaeab30f948f47e59b3c4f700fdaa1755d895c59.tar.xz
wireguard-openbsd-aaeab30f948f47e59b3c4f700fdaa1755d895c59.zip
remove silly stub file for alpha and only try to compile _atomic_lock.c
if it actually exists. ok marc@
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/alpha/_atomic_lock.c6
-rw-r--r--lib/libpthread/sys/Makefile.inc7
2 files changed, 5 insertions, 8 deletions
diff --git a/lib/libpthread/arch/alpha/_atomic_lock.c b/lib/libpthread/arch/alpha/_atomic_lock.c
deleted file mode 100644
index 5de2960abdc..00000000000
--- a/lib/libpthread/arch/alpha/_atomic_lock.c
+++ /dev/null
@@ -1,6 +0,0 @@
-/* $OpenBSD: _atomic_lock.c,v 1.7 2002/10/11 19:08:41 marc Exp $ */
-/*
- * Atomi lock for alpha.
- */
-
-/* _atomic lock is implemented in assembler. */
diff --git a/lib/libpthread/sys/Makefile.inc b/lib/libpthread/sys/Makefile.inc
index 633c31d8b61..f39fe7e43a0 100644
--- a/lib/libpthread/sys/Makefile.inc
+++ b/lib/libpthread/sys/Makefile.inc
@@ -1,10 +1,13 @@
-# $OpenBSD: Makefile.inc,v 1.12 2003/10/22 00:25:42 brad Exp $
+# $OpenBSD: Makefile.inc,v 1.13 2004/02/06 01:52:01 brad Exp $
.PATH: ${SRCDIR}/sys ${SRCDIR}/arch/${MACHINE_ARCH}
SRCS+= uthread_error.c
-SRCS+= _atomic_lock.c slow_atomic_lock.c
+SRCS+= slow_atomic_lock.c
+.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/_atomic_lock.c)
+SRCS+= _atomic_lock.c
+.endif
.if exists(${SRCDIR}/arch/${MACHINE_ARCH}/uthread_machdep_asm.S)
SRCS+= uthread_machdep_asm.S
.endif