pgsql: Build src/port/dirmod.c only on Windows. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Build src/port/dirmod.c only on Windows.
Date
Msg-id E1YWqUZ-0002OQ-78@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c415c13b7ef68c7f8626f74a8e593af2a5a766b9

Modified Files
--------------
configure          |    6 ++++++
configure.in       |    1 +
src/include/port.h |    2 +-
src/port/Makefile  |    2 +-
4 files changed, 9 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Remove workaround for ancient incompatibility between readline a
Next
From: Tom Lane
Date:
Subject: pgsql: Build src/port/dirmod.c only on Windows.