Integrate change #8695 from maintperl.
Jarkko Hietaniemi [Fri, 9 Feb 2001 17:25:12 +0000 (17:25 +0000)]
thread.h tweak to enable 5005threads on HP-UX 10.20 with DCE threads

p4raw-link: @8695 on //depot/maint-5.6/perl: c11cbe4f3d933e2347888f343724a545c9cdea8d

p4raw-id: //depot/perl@8743
p4raw-integrated: from //depot/maint-5.6/perl@8742 'copy in' thread.h
(@8609..)

thread.h

index 1923aed..1b12978 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -35,6 +35,7 @@
 #    if defined(__hpux) && defined(__ux_version) && __ux_version <= 1020
 #      define pthread_attr_init(a) pthread_attr_create(a)
        /* XXX pthread_setdetach_np() missing in DCE threads on HP-UX 10.20 */
+#      define PTHREAD_ATTR_SETDETACHSTATE(a,s) (0)
 #      define PTHREAD_CREATE(t,a,s,d) pthread_create(t,a,s,d)
 #      define pthread_key_create(k,d) pthread_keycreate(k,(pthread_destructor_t)(d))
 #      define pthread_mutexattr_init(a) pthread_mutexattr_create(a)