Browse Source

Guard GL(name) and it's users w/ SHARED

Peter S. Mazinger 19 years ago
parent
commit
c29df5ad24
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h

+ 3 - 1
libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h

@@ -30,10 +30,12 @@
 #define __clone clone
 #define __clone clone
 
 
 /* taken from ldsodefs.h, modified */
 /* taken from ldsodefs.h, modified */
-#define GL(name) _##name
+#ifdef SHARED
+# define GL(name) _##name
 void (*_dl_rtld_lock_recursive) (void *);
 void (*_dl_rtld_lock_recursive) (void *);
 void (*_dl_rtld_unlock_recursive) (void *);
 void (*_dl_rtld_unlock_recursive) (void *);
 void **(*_dl_error_catch_tsd) (void) __attribute__ ((const));
 void **(*_dl_error_catch_tsd) (void) __attribute__ ((const));
+#endif
 
 
 extern void *__libc_stack_end;
 extern void *__libc_stack_end;
 extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
 extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);