summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorBruce Momjian1996-11-04 04:00:56 +0000
committerBruce Momjian1996-11-04 04:00:56 +0000
commit7e42f4814d4914cb2be1cbe042cce547109dd6ce (patch)
treebb11e0ddfcc20bbb863741d73e6c3142b35efdea /src/interfaces
parent510ebf75a189db52bfaac0a74b078fa58611ed03 (diff)
Removed PORTNAME_. Use OS version only.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/libpq/Makefile4
-rw-r--r--src/interfaces/libpq/fe-connect.c4
-rw-r--r--src/interfaces/libpq/libpq-fe.h6
3 files changed, 6 insertions, 8 deletions
diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile
index 8a88617b732..4a26091ea1a 100644
--- a/src/interfaces/libpq/Makefile
+++ b/src/interfaces/libpq/Makefile
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.10 1996/11/03 07:14:29 scrappy Exp $
+# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.11 1996/11/04 04:00:53 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -71,8 +71,6 @@ c.h: ../include/c.h
rm -f c.h
echo "#undef PORTNAME" > c.h
echo "#define PORTNAME $(PORTNAME)" >> c.h
- echo "#undef PORTNAME_$(PORTNAME)" >> c.h
- echo "#define PORTNAME_$(PORTNAME)" >> c.h
cat ../include/c.h >> c.h
.PHONY: beforeinstall-headers install-headers
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index d0e50cfe34e..8e67399370a 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.13 1996/11/03 07:14:31 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.14 1996/11/04 04:00:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -28,7 +28,7 @@
#include "fe-auth.h"
#include "libpq-fe.h"
-#if defined(PORTNAME_ultrix4) || defined(PORTNAME_next)
+#if defined(ultrix4) || defined(next)
/* ultrix is lame and doesn't have strdup in libc for some reason */
/* [TRH] So doesn't NEXTSTEP. But whaddaya expect for a non-ANSI
standard function? (My, my. Touchy today, are we?) */
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index 598e2c8cd2f..073b2cf52f0 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.8 1996/10/10 08:20:11 bryanh Exp $
+ * $Id: libpq-fe.h,v 1.9 1996/11/04 04:00:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -261,10 +261,10 @@ typedef void *TUPLE;
#define palloc malloc
#define pfree free
-#if defined(PORTNAME_sparc)
+#if defined(sparc)
extern char *sys_errlist[];
#define strerror(A) (sys_errlist[(A)])
-#endif /* PORTNAME_sparc */
+#endif /* sparc */
#ifdef __cplusplus
};