http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51307
Arnaud Charlet <charlet at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW CC| |charlet at gcc dot gnu.org AssignedTo|unassigned at gcc dot |charlet at gcc dot gnu.org |gnu.org | --- Comment #4 from Arnaud Charlet <charlet at gcc dot gnu.org> 2011-11-28 09:48:39 UTC --- Here is the patch from Thomas Quinot fixing this issue, I'll commit it when I get a chance, feel free to use it/test it in the mean time: Modified: trunk/gnat/s-oscons-tmplt.c =================================================================== --- trunk/gnat/s-oscons-tmplt.c 2011-11-28 09:36:54 UTC (rev 180967) +++ trunk/gnat/s-oscons-tmplt.c 2011-11-28 09:42:49 UTC (rev 180968) @@ -1343,7 +1343,9 @@ */ -#ifdef CLOCK_REALTIME +/* Note: On HP-UX, CLOCK_REALTIME is an enum, not a macro. */ + +#if defined(CLOCK_REALTIME) || defined (__hpux__) CND(CLOCK_REALTIME, "System realtime clock") #endif @@ -1377,7 +1379,7 @@ # define CLOCK_RT_Ada "CLOCK_MONOTONIC" # define NEED_PTHREAD_CONDATTR_SETCLOCK -#elif defined(CLOCK_REALTIME) +#elif defined(CLOCK_REALTIME) || defined (__hpux__) /* By default use CLOCK_REALTIME */ # define CLOCK_RT_Ada "CLOCK_REALTIME" #endif