diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-02-06 01:52:02 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-02-06 01:52:02 +0000 |
commit | f4f652f27b6bc683e59d246956a77749e21a8a0c (patch) | |
tree | 9dbb6efe9dc08e79a5431f29a5c03184f4ac84a7 /lib | |
parent | 356883ae78caeb632c915d62a72f6c35dcd915d3 (diff) |
remove silly stub file for alpha and only try to compile _atomic_lock.c
if it actually exists.
ok marc@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpthread/arch/alpha/_atomic_lock.c | 6 | ||||
-rw-r--r-- | lib/libpthread/sys/Makefile.inc | 7 |
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 |