Re: CVS HEAD compile failure on Freebsd 4.9

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Vsevolod Lobko <seva(at)sevasoft(dot)kiev(dot)ua>, Mark Kirkwood <markir(at)paradise(dot)net(dot)nz>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS HEAD compile failure on Freebsd 4.9
Date: 2004-02-10 02:23:56
Message-ID: 200402100223.i1A2NuO11156@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Vsevolod Lobko <seva(at)sevasoft(dot)kiev(dot)ua> writes:
> > Yes, here too...
> > There are no headers included for struct timeval and function select
> > in miscadmin.h
>
> Certain parties who shall remain nameless have been gratuitously
> scattering dependencies on select() into lots of modules that don't
> need them. (When you are about to call the kernel to implement a
> multi-millisecond delay, there is no value in saving a nanosecond
> by inlining the code for it...) I plan to fix that later tonight
> if no one beats me to it.

The scattering isn't actually from Win32, which is where I thought it
came from. It is from the PG_DELAY call that was added with:

revision 1.137
date: 2003/11/13 14:57:15; author: wieck; state: Exp; lines: +8 -1
2nd try for the ARC strategy.

I added a couple more Assertions while tracking down the exact
cause of the former bug.

All 93 regression tests pass now.

Jan

What Win32 has done is to centralize all delay calls around that
function, now renamed PG_USLEEP/PG_MSLEEP. I was going to add the
missing includes but if you want to centralize it, I think that makes
more sense.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-02-10 02:35:25 Re: CVS HEAD compile failure on Freebsd 4.9
Previous Message Christopher Kings-Lynne 2004-02-10 02:19:30 SSL mode annoyance