@@ -37,7 +37,7 @@ OBJS=fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
3737# libpgport C files we always use
3838OBJS += chklocale.o inet_net_ntop.o noblock.o pgstrcasecmp.o thread.o
3939# libpgport C files that are needed if identified by configure
40- OBJS +=$(filter crypt.o getaddrinfo.o getpeereid.o inet_aton.o open.o snprintf.o strerror.o strlcpy.o win32error.o,$(LIBOBJS ) )
40+ OBJS +=$(filter crypt.o getaddrinfo.o getpeereid.o inet_aton.o open.o snprintf.o strerror.o strlcpy.o win32error.o,win32setlocale.o, $(LIBOBJS ) )
4141# backend/libpq
4242OBJS += ip.o md5.o
4343# utils/mb
@@ -88,7 +88,7 @@ backend_src = $(top_srcdir)/src/backend
8888# For some libpgport modules, this only happens if configure decides
8989# the module is needed (see filter hack in OBJS, above).
9090
91- chklocale.c crypt.c getaddrinfo.c getpeereid.c inet_aton.c inet_net_ntop.c noblock.c open.c pgsleep.c pgstrcasecmp.c snprintf.c strerror.c strlcpy.c thread.c win32error.c :% :$(top_srcdir ) /src/port/%
91+ chklocale.c crypt.c getaddrinfo.c getpeereid.c inet_aton.c inet_net_ntop.c noblock.c open.c pgsleep.c pgstrcasecmp.c snprintf.c strerror.c strlcpy.c thread.c win32error.c win32setlocale.c :% :$(top_srcdir ) /src/port/%
9292rm -f$@ && $(LN_S ) $< .
9393
9494ip.c md5.c :% :$(backend_src ) /libpq/%
@@ -135,7 +135,7 @@ clean distclean: clean-lib
135135# Might be left over from a Win32 client-only build
136136rm -f pg_config_paths.h
137137rm -f inet_net_ntop.c noblock.c pgstrcasecmp.c thread.c
138- rm -f chklocale.c crypt.c getaddrinfo.c getpeereid.c inet_aton.c open.c snprintf.c strerror.c strlcpy.c win32error.c
138+ rm -f chklocale.c crypt.c getaddrinfo.c getpeereid.c inet_aton.c open.c snprintf.c strerror.c strlcpy.c win32error.c win32setlocale.c
139139rm -f pgsleep.c
140140rm -f md5.c ip.c
141141rm -f encnames.c wchar.c