|
From: | Tom G. Christensen |
Subject: | Re: Build errors on Solaris 2.6 & 7 |
Date: | Sat, 19 Jan 2013 14:43:05 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130108 Thunderbird/10.0.12 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |