On 01/12/2013 11:49 AM, Tom G. Christensen wrote:
For Solaris 2.6 the timestruc_t problem remains and I will look at that
next.

On Solaris 2.6 <time.h> includes <sys/time.h> for struct timespec which causes a problem in the include order. It ends up as gnulib <time.h> -> system <time.h> -> gnulib <sys/time.h> -> system <sys/time.h> -> gnulib <sys/types.h> -> system <sys/types.h> -> gnulib <sys/select.h> -> gnulib <signal.h> -> system <sys/signal.h> -> system <sys/siginfo.h>.

This prevents <sys/time.h> from being fully parsed before <sys/siginfo.h> which needs it (for struct timestruc_t).

Solaris 7 and later defines struct timespec and struct timestruc_t in a subheader (<sys/time_impl.h>) included from <time.h> and avoids the problem.

-tgc

Reply via email to