aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-02-24 06:04:55 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-02-24 06:04:55 +0000
commit96316211c3a1300b304d452e09c726fb775aa502 (patch)
treea203f10d49c05fd7de22693f481685ab15a047b8 /src/interfaces
parent712e77e3dfbec79695da94ec7f64762f0555cfb2 (diff)
downloadpostgresql-96316211c3a1300b304d452e09c726fb775aa502.tar.gz
postgresql-96316211c3a1300b304d452e09c726fb775aa502.zip
From: t-ishii@sra.co.jp
Ok. I have decided to use: #if defined(sun) && if defined(sparc) && !defined(__svr4) instead of defined(sunos4). interfaces/libpq/libpq-fe.h and include/c.h have been modified(see included patches). Another porblems I have found are: o SunOS lacks strtoul(). to fix this I stole strtoul.c from FreeBSD and place it under backend/port. necessary modifications have been also made to backend/port/Makefile.in, include/config.h.in and configure.in (see included patches).
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/Makefile2
-rw-r--r--src/interfaces/libpq/libpq-fe.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile
index 1cb96989bca..5dddd9042c2 100644
--- a/src/interfaces/ecpg/preproc/Makefile
+++ b/src/interfaces/ecpg/preproc/Makefile
@@ -5,7 +5,7 @@ MAJOR_VERSION=1
MINOR_VERSION=0
PATCHLEVEL=0
-CFLAGS=-I../include -Wall -DMAJOR_VERSION=$(MAJOR_VERSION) -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
+CFLAGS=-I$(SRCDIR)/include -I../include -Wall -DMAJOR_VERSION=$(MAJOR_VERSION) -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL)
all:: ecpg
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index 933c3034051..9248ffc4d91 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: libpq-fe.h,v 1.25 1998/01/26 01:42:37 scrappy Exp $
+ * $Id: libpq-fe.h,v 1.26 1998/02/24 06:04:55 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -349,7 +349,7 @@ extern "C"
#define palloc malloc
#define pfree free
-#if defined(sunos4)
+#if defined(sun) && defined(sparc) && !defined(__svr4)
extern char *sys_errlist[];
#define strerror(A) (sys_errlist[(A)])
#endif /* sunos4 */