trawick     2002/07/30 12:26:35

  Modified:    build    apr_threads.m4
  Log:
  partial fix for realizing that we can't deal with pthreads on hp 10.20
  or other platforms that are missing PTHREAD_ONCE_INIT
  
  the rest of the fix (not coded) is to disable threads when the pthreads
  test compilation fails
  
  Revision  Changes    Path
  1.7       +1 -0      apr/build/apr_threads.m4
  
  Index: apr_threads.m4
  ===================================================================
  RCS file: /home/cvs/apr/build/apr_threads.m4,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- apr_threads.m4    24 Jul 2002 14:21:28 -0000      1.6
  +++ apr_threads.m4    30 Jul 2002 19:26:35 -0000      1.7
  @@ -86,6 +86,7 @@
   int main() {
       pthread_t thd;
       pthread_mutexattr_t mattr;
  +    pthread_once_t once_init = PTHREAD_ONCE_INIT;
       int data = 1;
       pthread_mutexattr_init(&mattr);
       return pthread_create(&thd, NULL, thread_routine, &data);
  
  
  

Reply via email to