aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-24 04:02:20 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-24 04:02:20 +0000
commit712e77e3dfbec79695da94ec7f64762f0555cfb2 (patch)
treeab6ad59f6df80bb3381eec10b8ca55da78c7f143 /src/interfaces
parent18e1f0331b5e92b8e3f49a88b6757db68eaa8e29 (diff)
downloadpostgresql-712e77e3dfbec79695da94ec7f64762f0555cfb2.tar.gz
postgresql-712e77e3dfbec79695da94ec7f64762f0555cfb2.zip
Various fixes for string.h vs strings.h
From: Frank Ridderbusch <ridderbusch.pad@sni.de>
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c
index 58368eee847..0239ece7d3c 100644
--- a/src/interfaces/ecpg/preproc/ecpg.c
+++ b/src/interfaces/ecpg/preproc/ecpg.c
@@ -2,6 +2,8 @@
/* (C) Michael Meskes <meskes@debian.org> Feb 5th, 1998 */
/* Placed under the same copyright as PostgresSQL */
+#include "postgres.h"
+
#include <stdio.h>
#if HAVE_GETOPT_H
# include <getopt.h>
@@ -9,7 +11,11 @@
# include <unistd.h>
#endif
#include <stdlib.h>
-#include <strings.h>
+#if defined(HAVE_STRING_H)
+# include <string.h>
+#else
+# include <strings.h>
+#endif
#include "extern.h"