Portability fixes found needed for SunOS 4.1.x:
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...
This commit is contained in:
parent
b10a719777
commit
19740e2fff
@ -6,7 +6,7 @@
|
|||||||
# Copyright (c) 1998, Regents of the University of California
|
# Copyright (c) 1998, Regents of the University of California
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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
|
endif
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
ifneq ($(shlib),)
|
||||||
$(shlib): $(OBJS)
|
$(shlib): $(OBJS)
|
||||||
$(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(SHLIB_LINK)
|
$(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(SHLIB_LINK)
|
||||||
|
endif
|
||||||
|
|
||||||
# Rules to install regular and shared libraries
|
# Rules to install regular and shared libraries
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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)
|
CFLAGS+= $(MBFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS= psql.o stringutils.o @STRDUP@
|
OBJS= psql.o stringutils.o @STRDUP@ @STRERROR2@
|
||||||
|
|
||||||
all: submake psql
|
all: submake psql
|
||||||
|
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
#define USE_POSIX_TIME
|
#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
|
#ifndef BIG_ENDIAN
|
||||||
#define BIG_ENDIAN 4321
|
#define BIG_ENDIAN 4321
|
||||||
|
@ -58,6 +58,6 @@ typedef unsigned char uch;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* for old systems with bcopy() but no memmove() */
|
/* 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)
|
#define memmove(d, s, c) bcopy(s, d, c)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user