summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_fork.c
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2012-08-22 22:34:58 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2012-08-22 22:34:58 +0000
commit9b5e9ac4f9a96d6324a9d299814a8a4a3a7c415e (patch)
tree9ca0c233be5082a4ff637ee139b024c64b0e0060 /lib/librthread/rthread_fork.c
parent54ae54cf8989fa0418450d71eb02b9dc0ce7ec62 (diff)
Test for __PIC__ instead of PIC in preparation for eliminating -DPIC
from bsd.lib.mk for C source files. ok deraadt, pascal
Diffstat (limited to 'lib/librthread/rthread_fork.c')
-rw-r--r--lib/librthread/rthread_fork.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/librthread/rthread_fork.c b/lib/librthread/rthread_fork.c
index 9ca144821c4..d5786ed5449 100644
--- a/lib/librthread/rthread_fork.c
+++ b/lib/librthread/rthread_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_fork.c,v 1.4 2011/11/06 11:48:59 guenther Exp $ */
+/* $OpenBSD: rthread_fork.c,v 1.5 2012/08/22 22:34:57 matthew Exp $ */
/*
* Copyright (c) 2008 Kurt Miller <kurt@openbsd.org>
@@ -77,7 +77,7 @@ _dofork(int is_vfork)
* binding in the other locking functions can succeed.
*/
-#if defined(__ELF__) && defined(PIC)
+#if defined(__ELF__) && defined(__PIC__)
_rthread_dl_lock(0);
#endif
@@ -85,13 +85,13 @@ _dofork(int is_vfork)
_thread_malloc_lock();
_thread_arc4_lock();
-#if defined(__ELF__) && defined(PIC)
+#if defined(__ELF__) && defined(__PIC__)
_rthread_bind_lock(0);
#endif
newid = sys_fork();
-#if defined(__ELF__) && defined(PIC)
+#if defined(__ELF__) && defined(__PIC__)
_rthread_bind_lock(1);
#endif
@@ -99,7 +99,7 @@ _dofork(int is_vfork)
_thread_malloc_unlock();
_thread_atexit_unlock();
-#if defined(__ELF__) && defined(PIC)
+#if defined(__ELF__) && defined(__PIC__)
_rthread_dl_lock(1);
#endif