Feb 17 snapshot and NetBSD - Mailing list pgsql-hackers

From Brook Milligan
Subject Feb 17 snapshot and NetBSD
Date
Msg-id 199802172340.QAA01999@trillium.nmsu.edu
Whole thread Raw
List pgsql-hackers
I am trying to get today's snapshot compiled.  The trouble I ran into
is with ecpg which seems to be missing some header files.

Also, ecpg.c includes getopt.h which doesn't exist on NetBSD systems.
The declarations are in unistd.h.  See the patch below.

I wasn't sure how to get the configuration scripts to differentiate
between these cases.

--- interfaces/ecpg/preproc/ecpg.c.orig    Tue Feb 17 01:00:39 1998
+++ interfaces/ecpg/preproc/ecpg.c    Tue Feb 17 14:22:23 1998
@@ -3,7 +3,7 @@
 /* Placed under the same copyright as PostgresSQL */

 #include <stdio.h>
-#include <getopt.h>
+#include <unistd.h>
 #include <stdlib.h>
 #include <strings.h>

Cheers,
Brook

pgsql-hackers by date:

Previous
From: Gerhard Reithofer
Date:
Subject: Crash and troubles with acl's
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Crash and troubles with acl's