Bruce Momjian <bruce(at)momjian(dot)us> writes:
> For me, 'struct timeval' is coming in via #include "libpq/libpq.h", but
> of course that is _after_ the inclusion of resource.h.
Ah, that explains it.
> Not sure where
> you see that sys/resource.h was always there. Looking at the CVS diffs
> I see it added only in the past day.
It was further down before.
There's still something pretty strange here, though, because AFAICS
configure should have rejected sys/resource.h if it needs sys/time.h.
regards, tom lane