summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorTom Lane2015-03-14 18:08:45 +0000
committerTom Lane2015-03-14 18:08:45 +0000
commitc415c13b7ef68c7f8626f74a8e593af2a5a766b9 (patch)
tree26010108578f0178aa53325ff4dba9ce370e3891 /src/port
parentf50b5c7d0dfd997ec93c29d54dfe4f63a224ab23 (diff)
Build src/port/dirmod.c only on Windows.
Since commit ba7c5975adea74c6f17bdb0e0427ad85962092a2, port/dirmod.c has contained only Windows-specific functions. Most platforms don't seem to mind uselessly building an empty file, but OS X for one issues warnings. Hence, treat dirmod.c as a Windows-specific file selected by configure rather than one that's always built. We can revert this change if dirmod.c ever gains any non-Windows functionality again. Back-patch to 9.4 where the mentioned commit appeared.
Diffstat (limited to 'src/port')
-rw-r--r--src/port/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/port/Makefile b/src/port/Makefile
index 6dc642cd3e5..835b034fe96 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -30,7 +30,7 @@ include $(top_builddir)/src/Makefile.global
override CPPFLAGS := -I$(top_builddir)/src/port -DFRONTEND $(CPPFLAGS)
LIBS += $(PTHREAD_LIBS)
-OBJS = $(LIBOBJS) chklocale.o dirmod.o erand48.o fls.o inet_net_ntop.o \
+OBJS = $(LIBOBJS) chklocale.o erand48.o fls.o inet_net_ntop.o \
noblock.o path.o pgcheckdir.o pg_crc.o pgmkdirp.o pgsleep.o \
pgstrcasecmp.o pqsignal.o \
qsort.o qsort_arg.o quotes.o sprompt.o tar.o thread.o