From bf00aec8d057cfc1c0036660876968ce1f85fb9d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 14 Apr 2000 00:42:06 +0000 Subject: [PATCH] If configure finds that inet_aton() is not present on this platform, include the version from backend/port into libpq. There is a second-rate implementation of inet_aton() already present in fe-connect.c, #ifdef'd WIN32. That ought to be removed in favor of using the better version from port/. However, since I'm not in a position to test the WIN32 code, I will leave well enough alone for this release... --- src/interfaces/libpq/Makefile.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/interfaces/libpq/Makefile.in b/src/interfaces/libpq/Makefile.in index 5801ffc641..0a4358a3fa 100644 --- a/src/interfaces/libpq/Makefile.in +++ b/src/interfaces/libpq/Makefile.in @@ -6,7 +6,7 @@ # Copyright (c) 1994, Regents of the University of California # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.53 2000/01/19 02:59:03 petere Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.54 2000/04/14 00:42:06 tgl Exp $ # #------------------------------------------------------------------------- @@ -24,7 +24,7 @@ CFLAGS+= $(KRBFLAGS) endif OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \ - pqexpbuffer.o dllist.o pqsignal.o @SNPRINTF@ + pqexpbuffer.o dllist.o pqsignal.o @SNPRINTF@ @INET_ATON@ ifdef MULTIBYTE OBJS+= common.o wchar.o conv.o big5.o @@ -50,6 +50,10 @@ dllist.c: $(SRCDIR)/backend/lib/dllist.c snprintf.c: $(SRCDIR)/backend/port/snprintf.c -$(LN_S) $(SRCDIR)/backend/port/snprintf.c . +# this only gets done if configure finds system doesn't have inet_aton() +inet_aton.c: $(SRCDIR)/backend/port/inet_aton.c + -$(LN_S) $(SRCDIR)/backend/port/inet_aton.c . + ifdef MULTIBYTE common.c: $(SRCDIR)/backend/utils/mb/common.c -$(LN_S) $(SRCDIR)/backend/utils/mb/common.c . @@ -89,7 +93,7 @@ install-headers: libpq-fe.h libpq-int.h clean: clean-shlib rm -f lib$(NAME).a $(OBJS) - rm -f dllist.c snprintf.c common.c wchar.c conv.c big5.c + rm -f dllist.c snprintf.c inet_aton.c common.c wchar.c conv.c big5.c depend dep: $(CC) -MM $(CFLAGS) *.c >depend -- 2.40.0