aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-10-19 18:21:58 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-10-19 18:31:38 +0200
commit5d3587d14b753cb25b0ebcd549d95e1b6ceebce4 (patch)
treebd56a49e3cf4056f0012d6f96604a67c5eed3cb9 /src/backend/storage/file/fd.c
parent48cc59ed24f95fa171b12ba1b461e6dc72d62b2b (diff)
downloadpostgresql-5d3587d14b753cb25b0ebcd549d95e1b6ceebce4.tar.gz
postgresql-5d3587d14b753cb25b0ebcd549d95e1b6ceebce4.zip
Fix most -Wundef warnings
In some cases #if was used instead of #ifdef in an inconsistent style. Cleaning this up also helps when analyzing cases like 38d8dce61fff09daae0edb6bcdd42b0c7f10ebcd where this makes a difference. There are no behavior changes here, but the change in pg_bswap.h would prevent possible accidental misuse by third-party code. Discussion: https://www.postgresql.org/message-id/flat/3b615ca5-c595-3f1d-fdf7-a429e564f614%402ndquadrant.com
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 94be62fa6ec..fe2bb8f8596 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -738,7 +738,7 @@ durable_link_or_rename(const char *oldfile, const char *newfile, int elevel)
if (fsync_fname_ext(oldfile, false, false, elevel) != 0)
return -1;
-#if HAVE_WORKING_LINK
+#ifdef HAVE_WORKING_LINK
if (link(oldfile, newfile) < 0)
{
ereport(elevel,