           }
       }
   
+*** misc/mozilla/nsprpub/pr/include/md/_pth.h
+--- misc/build/mozilla/nsprpub/pr/include/md/_pth.h
+***************
+*** 198,204 ****
+  /*
+   * These platforms don't have pthread_kill()
+   */
+! #if defined(DARWIN)
+  #define pthread_kill(thread, sig) ENOSYS
+  #endif
+  
+--- 198,204 ----
+  /*
+   * These platforms don't have pthread_kill()
+   */
+! #if defined(DARWIN) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050
+  #define pthread_kill(thread, sig) ENOSYS
+  #endif
+  

      if test "`${PERL} -v | grep -c cygwin  2>/dev/null`" = 0; then
          _AS_PERL=1
***************
*** 5228,5234 ****
      ;;
  

  	endif
  endif
  	DSO_LDOPTS += -G -h $(notdir $@)
+     DSO_LDOPTS += -R '$$ORIGIN'
  endif
  
  # -KPIC generates position independent code for use in shared libraries.
