diff options
author | Michael Banck <mbanck@debian.org> | 2005-06-06 21:10:20 +0000 |
---|---|---|
committer | Michael Banck <mbanck@debian.org> | 2005-06-06 21:10:20 +0000 |
commit | b523c29ec5923483e5d3fb3693c2fdfec68cd15a (patch) | |
tree | 23cc2e141ba2cf2c79bd5d314f960ff5f473cb58 /debian/patches | |
parent | b5037919642367be1a26c18f7483d6e66b49f69e (diff) |
* debian/patches/libpthread_need_clockid_t.patch: Updated from CVS.
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/libpthread_need_clockid_t.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/libpthread_need_clockid_t.patch b/debian/patches/libpthread_need_clockid_t.patch index 70921fa8..31c92793 100644 --- a/debian/patches/libpthread_need_clockid_t.patch +++ b/debian/patches/libpthread_need_clockid_t.patch @@ -1,3 +1,8 @@ +2005-05-31 Neal H. Walfield <neal@gnu.org> + + * include/pthread/pthread.h: If clockid_t is still not defined + after including <time.h>, define it manually. + 2005-05-17 Neal H. Walfield <neal@gnu.org> * include/pthread/pthread.h: Define __need_clockid_t before @@ -17,3 +22,28 @@ diff -u -r1.5 -r1.6 #include <time.h> __BEGIN_DECLS +Index: libpthread/include/pthread/pthread.h +=================================================================== +RCS file: /cvsroot/hurd/hurd/libpthread/include/pthread/pthread.h,v +retrieving revision 1.6 +retrieving revision 1.7 +diff -u -r1.6 -r1.7 +--- libpthread/include/pthread/pthread.h 17 May 2005 09:40:50 -0000 1.6 ++++ libpthread/include/pthread/pthread.h 31 May 2005 17:34:36 -0000 1.7 +@@ -29,6 +29,16 @@ + #define __need_clockid_t + #include <time.h> + ++/* If we are in a mode where clockid_t is not automatically defined ++ and another header has already included <time.h> then defining ++ __need_clockid_t was not enough. */ ++#ifndef __clockid_t_defined ++# define __clockid_t_defined 1 ++# include <bits/types.h> ++/* Clock ID used in clock and timer functions. */ ++typedef __clockid_t clockid_t; ++#endif ++ + __BEGIN_DECLS + + #include <bits/pthread.h> |