Browse Source

Patch from Peter S. Mazinger to fix some leftover problems
from converting "PIC" to "__PIC__"

Eric Andersen 21 years ago
parent
commit
0ef5ac4b9c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      libpthread/linuxthreads/attr.c
  2. 1 1
      libpthread/linuxthreads/oldsemaphore.c

+ 1 - 1
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)

+ 1 - 1
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);