Build src/port/dirmod.c only on Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 14 Mar 2015 18:08:45 +0000 (14:08 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 14 Mar 2015 18:08:45 +0000 (14:08 -0400)
commit91f4a5a976500517e492320e389342d7436cf9d4
tree30c1c43406ad158548a884eaa173417b218990c8
parentdf9ebf1eeaf98481e00cd77bf6056d42310731b7
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.
configure
configure.in
src/include/port.h
src/port/Makefile