Fix last patch.
authordrepper <drepper>
Fri, 16 Apr 2004 21:32:13 +0000 (21:32 +0000)
committerdrepper <drepper>
Fri, 16 Apr 2004 21:32:13 +0000 (21:32 +0000)
linuxthreads/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h

index ec21949..108959f 100644 (file)
 #  define CENABLE      call __pthread_enable_asynccancel;
 #  define CDISABLE     call __pthread_disable_asynccancel
 # elif defined IS_IN_librt
-#  ifdef __PIC__
+#  ifdef PIC
 #   define CENABLE     pushl %ebx; \
-                       SETUP_PIC_REG(bx); \
+                       call __i686.get_pc_thunk.bx; \
                        call __librt_enable_asynccancel@PLT; \
                        popl %ebx;
 #   define CDISABLE    pushl %ebx; \
-                       SETUP_PIC_REG(bx); \
+                       call __i686.get_pc_thunk.bx; \
                        call __librt_disable_asynccancel@PLT; \
                        popl %ebx;
 #  else
 #   define CENABLE     call __librt_enable_asynccancel;
 #   define CDISABLE    call __librt_disable_asynccancel
-   #endif
+#  endif
 # else
 #  define CENABLE      call __libc_enable_asynccancel;
 #  define CDISABLE     call __libc_disable_asynccancel