------- Comment #2 from fang at csl dot cornell dot edu  2007-01-20 22:00 
-------
In <sys/resource.h> (Darwin), near the beginning, you'll see some ifndef
business for struct timeval (the type of ru_utime and ru_stime).  It looks to
be protected by the _TIMEVAL macro.  Somehow that is evaluating the wrong way,
resulting in no struct timeval definition.  Incidentally, _TIMEVAL is similarly
defined and used in <sys/time.h>.  The preprocessed source reveals that timeval
is first referenced in "gcc/include/unistd.h", so one possible fix might be to
include <sys/time.h> there (maybe conditionally).  I've run into this before
porting other projects.  


-- 

fang at csl dot cornell dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fang at csl dot cornell dot
                   |                            |edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30518

Reply via email to