aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-07-20 16:09:50 +1200
committerThomas Munro <tmunro@postgresql.org>2022-07-20 16:09:50 +1200
commitbde60daa0ec9d0ee8dc79c0caa2c94d128527867 (patch)
tree842f770aef005a364aa4c1943c4c58ea038daf9b
parent9430fb407bb64cc842e56fb5844265a9343dafba (diff)
downloadpostgresql-bde60daa0ec9d0ee8dc79c0caa2c94d128527867.tar.gz
postgresql-bde60daa0ec9d0ee8dc79c0caa2c94d128527867.zip
Fix warnings on Windows.
Avoid macro redefinition warnings. Reported-by: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAApHDvocHp4SXcPeMTwFiCQGaf9JypjTJ3Bh90jcPuGwxyDjjQ%40mail.gmail.com
-rw-r--r--src/include/port/win32_port.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/port/win32_port.h b/src/include/port/win32_port.h
index 5ea66528fad..4de5bf3bf60 100644
--- a/src/include/port/win32_port.h
+++ b/src/include/port/win32_port.h
@@ -87,7 +87,9 @@
* We have a replacement for fdatasync() in src/port/fdatasync.c, which is
* unconditionally used by MSVC and Mingw builds.
*/
+#ifndef HAVE_FDATASYNC
#define HAVE_FDATASYNC
+#endif
#define USES_WINSOCK