Re: [HACKERS] [COMMITTERS] pgsql: Add include needed for new getrusage() call.

2006-10-08 Thread Peter Eisentraut
Tom Lane wrote: > There's still something pretty strange here, though, because AFAICS > configure should have rejected sys/resource.h if it needs sys/time.h. I think it only gives you a warning. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broa

Re: [HACKERS] [COMMITTERS] pgsql: Add include needed for new getrusage() call.

2006-10-08 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> 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

Re: [HACKERS] [COMMITTERS] pgsql: Add include needed for new getrusage() call.

2006-10-08 Thread Tom Lane
[EMAIL PROTECTED] (Bruce Momjian) writes: > Add include needed for new getrusage() call. If that's actually needed, how did the code build before? It's always included sys/resource.h, except possibly on machines without getrusage ... are there any? I was thinking rusagestub was dead code, myself