Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19740e2

Browse files
committed
Portability fixes found needed for SunOS 4.1.x:
SunOS has tas(), but not memmove or strerror, and its sprintf() doesn'treturn int. Also, older versions of GNU Make don't like rules withempty left-hand sides...
1 parentb10a719 commit19740e2

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

‎src/Makefile.shlib‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.4 1998/11/12 05:27:00 tgl Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.5 1998/11/30 00:30:03 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -171,8 +171,10 @@ else
171171
endif
172172
$(RANLIB) $@
173173

174+
ifneq ($(shlib),)
174175
$(shlib): $(OBJS)
175176
$(LD) $(LDFLAGS_SL) -o $@ $(OBJS) $(SHLIB_LINK)
177+
endif
176178

177179
# Rules to install regular and shared libraries
178180

‎src/bin/psql/Makefile.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.13 1998/07/26 04:31:20 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.14 1998/11/30 00:30:05 tgl Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -28,7 +28,7 @@ ifdef MULTIBYTE
2828
CFLAGS+=$(MBFLAGS)
2929
endif
3030

31-
OBJS= psql.o stringutils.o @STRDUP@
31+
OBJS= psql.o stringutils.o @STRDUP@@STRERROR2@
3232

3333
all: submake psql
3434

‎src/include/port/sunos4.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#defineUSE_POSIX_TIME
2+
#defineHAS_TEST_AND_SET
3+
typedefunsignedcharslock_t;
4+
5+
/* sprintf() returns char *, not int, on SunOS 4.1.x */
6+
#defineSPRINTF_CHAR
27

38
#ifndefBIG_ENDIAN
49
#defineBIG_ENDIAN4321

‎src/include/regex/utils.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ typedef unsigned char uch;
5858
#endif
5959

6060
/* for old systems with bcopy() but no memmove() */
61-
#if !defined(HAVE_MEMMOVE)
61+
#if !defined(HAVE_MEMMOVE)&& !defined(memmove)
6262
#definememmove(d,s,c)bcopy(s, d, c)
6363
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp