gcc/gthr-posix.h changes
Jeffrey A Law
law@cygnus.com
Thu Aug 10 14:55:00 GMT 2000
In message < 200008100721.AAA01956@ce175879.cup.hp.com >you write:
> Index: gcc/configure.in
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/configure.in,v
> retrieving revision 1.403
> retrieving revision 1.404
> diff -u -r1.403 -r1.404
> --- configure.in 2000/08/09 19:44:29 1.403
> +++ configure.in 2000/08/10 07:08:53 1.404
> @@ -401,7 +401,7 @@
> AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
> fcntl.h unistd.h stab.h sys/file.h sys/time.h \
> sys/resource.h sys/param.h sys/times.h sys/stat.h \
> - direct.h malloc.h)
> + direct.h malloc.h sched.h)
Looks fine.
> # Check for thread headers.
> AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
> Index: gcc/config.in
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/config.in,v
> retrieving revision 1.78
> retrieving revision 1.79
> diff -u -r1.78 -r1.79
> --- config.in 2000/08/09 19:41:10 1.78
> +++ config.in 2000/08/10 07:07:58 1.79
> @@ -237,6 +237,9 @@
> /* Define if you have the <nl_types.h> header file. */
> #undef HAVE_NL_TYPES_H
>
> +/* Define if you have the <sched.h> header file. */
> +#undef HAVE_SCHED_H
> +
> /* Define if you have the <stab.h> header file. */
> #undef HAVE_STAB_H
Similarly.
> Index: gcc/gthr-posix.h
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/gthr-posix.h,v
> retrieving revision 1.8
> retrieving revision 1.9
> diff -u -r1.8 -r1.9
> --- gthr-posix.h 2000/08/06 18:54:00 1.8
> +++ gthr-posix.h 2000/08/10 07:11:02 1.9
> @@ -90,6 +90,12 @@
>
> #ifdef _LIBOBJC
>
> +#include <auto-host.h>
> +
> +#ifdef HAVE_SCHED_H
> +# include <sched.h>
> +#endif
> +
But this doesn't make sense to me -- isn't the treading package a target
issue? If so, then we care about whether or not the target has sched.h and
thus including auto-host is wrong since it is host definitions.
jeff
More information about the Gcc-patches
mailing list