mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
528 B

  1. copied from http://www.nabble.com/-PATCH--Define-RTLD_SINGLE_THREAD_P-on-ARM-tf3814888.html
  2. --- glibc-2.6/glibc-ports-2.6.1/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-07-03 11:03:16.000000000 +0200
  3. +++ glibc-2.6/ports/sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h 2007-07-03 11:04:30.000000000 +0200
  4. @@ -126,3 +126,9 @@
  5. # define NO_CANCELLATION 1
  6. #endif
  7. +
  8. +#ifndef __ASSEMBLER__
  9. +# define RTLD_SINGLE_THREAD_P \
  10. + __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
  11. + header.multiple_threads) == 0, 1)
  12. +#endif