Re: [HACKERS] compile problem in libpq - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] compile problem in libpq
Date
Msg-id 199805081740.NAA10095@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] compile problem in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
>
> >> I had t add a #include <sys/time.h> to get fe-misc.c to compile on my Debian
> >> GNU/Linux 2.0 machine.
>
> > Do you have the #include <time.h> line, and you need sys/time.h too?
>
> Now that he mentions it, I've seen the same thing on Linux boxen:
> you need to include both <time.h> and <sys/time.h>.  (I think the
> latter pulls in some definitions needed to use select() on that OS.)
> Sorry for not remembering about it.  On my OS <time.h> just includes
> <sys/time.h> ...

OK, I added sys/time.h to fe-misc.c  postmaster.c has time.h and
sys/time.h, so why not here too?

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Try again: S_LOCK reduced contentionh]
Next
From: ocie@paracel.com
Date:
Subject: [HACKERS] Your Search Engine Listing (fwd)