struct pthread_functions change breaks Wine

Alexandre Julliard julliard@winehq.com
Wed Sep 10 20:27:00 GMT 2003


The following change to the pthread_functions structure breaks Wine,
because we define that structure internally to redirect pthread
functions to our own wrappers. Now I know that we are not supposed to
do that, but we don't really have a choice if we want to use libc
functions from Win32 threads.

Would it be possible to move the new function to the end of the
structure, so that we can add it in Wine while remaining backwards
compatible?

Index: pthread-functions.h
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/pthread/pthread-functions.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- pthread-functions.h	20 Apr 2003 07:37:06 -0000	1.1
+++ pthread-functions.h	2 Sep 2003 00:36:28 -0000	1.2
@@ -54,6 +54,8 @@ struct pthread_functions
 				  const pthread_condattr_t *);
   int (*ptr___pthread_cond_signal) (pthread_cond_t *);
   int (*ptr___pthread_cond_wait) (pthread_cond_t *, pthread_mutex_t *);
+  int (*ptr___pthread_cond_timedwait) (pthread_cond_t *, pthread_mutex_t *,
+				       const struct timespec *);
   int (*ptr_pthread_equal) (pthread_t, pthread_t);
   void (*ptr___pthread_exit) (void *);
   int (*ptr_pthread_getschedparam) (pthread_t, int *, struct sched_param *);

-- 
Alexandre Julliard
julliard@winehq.com



More information about the Libc-alpha mailing list