]> granicus.if.org Git - postgresql/commitdiff
Portability fixes found needed for SunOS 4.1.x:
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Nov 1998 00:30:05 +0000 (00:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Nov 1998 00:30:05 +0000 (00:30 +0000)
SunOS has tas(), but not memmove or strerror, and its sprintf() doesn't
return int.  Also, older versions of GNU Make don't like rules with
empty left-hand sides...

src/Makefile.shlib
src/bin/psql/Makefile.in
src/include/port/sunos4.h
src/include/regex/utils.h

index 66b51fc118990a54f62893a7e87406796f1f2a7b..eb4da6fcf67912be5dd414fc0807adbaef2b2db4 100644 (file)
@@ -6,7 +6,7 @@
 # Copyright (c) 1998, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.4 1998/11/12 05:27:00 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.5 1998/11/30 00:30:03 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -171,8 +171,10 @@ else
 endif
        $(RANLIB) $@
 
+ifneq ($(shlib),)
 $(shlib): $(OBJS)
        $(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(SHLIB_LINK)
+endif
 
 # Rules to install regular and shared libraries
 
index 66a9748669f39a7331cab12dc54c42193fd88812..1af2e51ff879abaeb4c3a3ac8a8782b71b08ea10 100644 (file)
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.13 1998/07/26 04:31:20 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.14 1998/11/30 00:30:05 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -28,7 +28,7 @@ ifdef MULTIBYTE
 CFLAGS+= $(MBFLAGS)
 endif
 
-OBJS= psql.o stringutils.o @STRDUP@ 
+OBJS= psql.o stringutils.o @STRDUP@ @STRERROR2@
 
 all: submake psql
 
index f08580cfafc2201a5927ca00bf69a037e8a511fb..e9c0ec29d44f30cfa44f29ab99916377df7c6d6d 100644 (file)
@@ -1,4 +1,9 @@
 #define USE_POSIX_TIME
+#define HAS_TEST_AND_SET
+typedef unsigned char slock_t;
+
+/* sprintf() returns char *, not int, on SunOS 4.1.x */
+#define SPRINTF_CHAR
 
 #ifndef                        BIG_ENDIAN
 #define                        BIG_ENDIAN              4321
index e6f169065fb599ffddb775ab7a8682f778464db1..de36c6ffb5623a5ab097aae1b93ed2b167e77f29 100644 (file)
@@ -58,6 +58,6 @@ typedef unsigned char uch;
 #endif
 
 /* for old systems with bcopy() but no memmove() */
-#if !defined(HAVE_MEMMOVE)
+#if !defined(HAVE_MEMMOVE) && !defined(memmove)
 #define memmove(d, s, c)               bcopy(s, d, c)
 #endif