Red Hat Bugzilla – Bug 131943
pthread usage should be portable
Last modified: 2007-11-30 17:10:48 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
rv:1.7) Gecko/20040623 Camino/0.8
Description of problem:
- Not every platform has PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
- pthread_cleanup_pop does not return something everywhere.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile RPM 4.3.x on non-Linux platforms
Actual Results: Compile failure.
Expected Results: Compile success.
Created attachment 103529 [details]
The quick patch above deadlocked (oops),
so I need a little more clever one...
Created attachment 104095 [details]
Fixes the deadlock in the previous patch
Added to HEAD and rpm-4_4 branches, should be in rpm-4.4.1-0.6 when built.
Thanks for the patch.