Re: [HACKERS] compile problem in libpq

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] compile problem in libpq
Date: 1998-05-08 17:39:48
Message-ID: 199805081740.NAA10095@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Osborn 1998-05-08 17:49:36 Re: [INTERFACES] NEW ODBC DRIVER
Previous Message Bruce Momjian 1998-05-08 17:31:15 Re: [PATCHES] Try again: S_LOCK reduced contentionh]