mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Fix another portability issue from commit 758ce9b77
.
strerror.c now requires strlcpy() in some cases, and a couple of the ecpg libraries did not have that at hand. Pull it in from src/port/ following the usual recipe. Per buildfarm.
This commit is contained in:
parent
ba16aade33
commit
ce4887bd02
1
src/interfaces/ecpg/compatlib/.gitignore
vendored
1
src/interfaces/ecpg/compatlib/.gitignore
vendored
@ -3,4 +3,5 @@
|
|||||||
/exports.list
|
/exports.list
|
||||||
/snprintf.c
|
/snprintf.c
|
||||||
/strerror.c
|
/strerror.c
|
||||||
|
/strlcpy.c
|
||||||
/strnlen.c
|
/strnlen.c
|
||||||
|
@ -32,7 +32,7 @@ SHLIB_EXPORTS = exports.txt
|
|||||||
LIBS := $(filter-out -lpgport, $(LIBS))
|
LIBS := $(filter-out -lpgport, $(LIBS))
|
||||||
|
|
||||||
OBJS= informix.o snprintf.o strerror.o \
|
OBJS= informix.o snprintf.o strerror.o \
|
||||||
$(filter strnlen.o, $(LIBOBJS)) $(WIN32RES)
|
$(filter strlcpy.o strnlen.o, $(LIBOBJS)) $(WIN32RES)
|
||||||
|
|
||||||
PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes
|
PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ submake-pgtypeslib:
|
|||||||
# Shared library stuff
|
# Shared library stuff
|
||||||
include $(top_srcdir)/src/Makefile.shlib
|
include $(top_srcdir)/src/Makefile.shlib
|
||||||
|
|
||||||
snprintf.c strerror.c strnlen.c: % : $(top_srcdir)/src/port/%
|
snprintf.c strerror.c strlcpy.c strnlen.c: % : $(top_srcdir)/src/port/%
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
install: all installdirs install-lib
|
install: all installdirs install-lib
|
||||||
@ -59,6 +59,6 @@ installdirs: installdirs-lib
|
|||||||
uninstall: uninstall-lib
|
uninstall: uninstall-lib
|
||||||
|
|
||||||
clean distclean: clean-lib
|
clean distclean: clean-lib
|
||||||
rm -f $(OBJS) snprintf.c strerror.c strnlen.c
|
rm -f $(OBJS) snprintf.c strerror.c strlcpy.c strnlen.c
|
||||||
|
|
||||||
maintainer-clean: distclean maintainer-clean-lib
|
maintainer-clean: distclean maintainer-clean-lib
|
||||||
|
1
src/interfaces/ecpg/pgtypeslib/.gitignore
vendored
1
src/interfaces/ecpg/pgtypeslib/.gitignore
vendored
@ -5,5 +5,6 @@
|
|||||||
/rint.c
|
/rint.c
|
||||||
/snprintf.c
|
/snprintf.c
|
||||||
/strerror.c
|
/strerror.c
|
||||||
|
/strlcpy.c
|
||||||
/string.c
|
/string.c
|
||||||
/strnlen.c
|
/strnlen.c
|
||||||
|
@ -31,7 +31,7 @@ SHLIB_EXPORTS = exports.txt
|
|||||||
|
|
||||||
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
|
OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \
|
||||||
pgstrcasecmp.o snprintf.o strerror.o \
|
pgstrcasecmp.o snprintf.o strerror.o \
|
||||||
$(filter rint.o strnlen.o, $(LIBOBJS)) \
|
$(filter rint.o strlcpy.o strnlen.o, $(LIBOBJS)) \
|
||||||
string.o \
|
string.o \
|
||||||
$(WIN32RES)
|
$(WIN32RES)
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ include $(top_srcdir)/src/Makefile.shlib
|
|||||||
# necessarily use the same object files as the backend uses. Instead,
|
# necessarily use the same object files as the backend uses. Instead,
|
||||||
# symlink the source files in here and build our own object file.
|
# symlink the source files in here and build our own object file.
|
||||||
|
|
||||||
pgstrcasecmp.c rint.c snprintf.c strerror.c strnlen.c: % : $(top_srcdir)/src/port/%
|
pgstrcasecmp.c rint.c snprintf.c strerror.c strlcpy.c strnlen.c: % : $(top_srcdir)/src/port/%
|
||||||
rm -f $@ && $(LN_S) $< .
|
rm -f $@ && $(LN_S) $< .
|
||||||
|
|
||||||
string.c: % : $(top_srcdir)/src/common/%
|
string.c: % : $(top_srcdir)/src/common/%
|
||||||
@ -58,6 +58,6 @@ installdirs: installdirs-lib
|
|||||||
uninstall: uninstall-lib
|
uninstall: uninstall-lib
|
||||||
|
|
||||||
clean distclean: clean-lib
|
clean distclean: clean-lib
|
||||||
rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c strerror.c strnlen.c string.c
|
rm -f $(OBJS) pgstrcasecmp.c rint.c snprintf.c strerror.c strlcpy.c strnlen.c string.c
|
||||||
|
|
||||||
maintainer-clean: distclean maintainer-clean-lib
|
maintainer-clean: distclean maintainer-clean-lib
|
||||||
|
Loading…
Reference in New Issue
Block a user