Thread: Feb 17 snapshot and NetBSD

Feb 17 snapshot and NetBSD

From
Brook Milligan
Date:
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