Build src/port/dirmod.c only on Windows.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c415c13b7ef68c7f8626f74a8e593af2a5a766b9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2015-03-14T18:08:45Z
Releases: 9.4.2
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.

Files

PathChange+/−
configure modified +6 −0
configure.in modified +1 −0
src/include/port.h modified +1 −1
src/port/Makefile modified +1 −1