summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-02 17:51:32 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-02 17:51:32 +0000
commit0ef5ac4b9c07dccab409b5b2de7fba28116efc40 (patch)
tree2cf29bbf19854cb2fd2337c10b7451e3d4085df8
parentfbda8b46871166d07b2cdb15445fee8e4ee2a2bf (diff)
Patch from Peter S. Mazinger to fix some leftover problems
from converting "PIC" to "__PIC__"
-rw-r--r--libpthread/linuxthreads/attr.c2
-rw-r--r--libpthread/linuxthreads/oldsemaphore.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/attr.c b/libpthread/linuxthreads/attr.c
index db5809cbc..4432a04d1 100644
--- a/libpthread/linuxthreads/attr.c
+++ b/libpthread/linuxthreads/attr.c
@@ -50,7 +50,7 @@ int pthread_attr_init(pthread_attr_t *attr)
/* uClibc: leave out this for now. */
#if DO_PTHREAD_VERSIONING_WITH_UCLIBC
-#if defined __HAVE_ELF__ && defined PIC && defined DO_VERSIONING
+#if defined __HAVE_ELF__ && defined __PIC__ && defined DO_VERSIONING
default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1);
int __pthread_attr_init_2_0(pthread_attr_t *attr)
diff --git a/libpthread/linuxthreads/oldsemaphore.c b/libpthread/linuxthreads/oldsemaphore.c
index 225af508f..3a3b3d186 100644
--- a/libpthread/linuxthreads/oldsemaphore.c
+++ b/libpthread/linuxthreads/oldsemaphore.c
@@ -224,7 +224,7 @@ static void sem_restart_list(pthread_descr waiting)
}
}
-#if defined __PIC__ && DO_VERSIONING
+#if defined __PIC__ && defined DO_VERSIONING
symbol_version (__old_sem_init, sem_init, GLIBC_2.0);
symbol_version (__old_sem_wait, sem_wait, GLIBC_2.0);
symbol_version (__old_sem_trywait, sem_trywait, GLIBC_2.0);