pthreads, part 3

Nick Burrett nick at dsvr.net
Sat Dec 28 11:29:25 PST 2002


Alex Waugh wrote:
> Some miscellaneous pthreads changes:
> 
> Changed errno back to a global variable, as some programs had problems
> with the macro
> Fix problem with programs like links that have their own sched.h
> Add support for restoring the CPSR on a 32bit OS
> Various APCS32 fixes

> Index: unixlib/source/clib/pthread.h
> ===================================================================
> RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/clib/pthread.h,v
> retrieving revision 1.3
> diff -u -r1.3 pthread.h
> --- unixlib/source/clib/pthread.h	15 Dec 2002 13:16:55 -0000	1.3
> +++ unixlib/source/clib/pthread.h	26 Dec 2002 17:40:40 -0000
> @@ -22,7 +22,8 @@
>  #define __need_clock_t
>  #include <time.h>
>  
> -#include <sched.h> /* for struct sched_param */
> +#include "sched.h" /* for struct sched_param */
> +/* uses "" rather than <> to prevent problems with programs that have their own sched.h */

I disagree with this change.   The problem lies with 'links' or the 
include path specifiers that you are using.  '<...>' are for system 
headers, which sched.h, being in the standard C library, is.


Nick.






More information about the gcc mailing list