From: Thomas Munro Date: Wed, 20 Jul 2022 04:09:50 +0000 (+1200) Subject: Fix warnings on Windows. X-Git-Tag: REL_16_BETA1~2189 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=bde60daa0ec9d0ee8dc79c0caa2c94d128527867;p=postgresql.git Fix warnings on Windows. Avoid macro redefinition warnings. Reported-by: David Rowley Discussion: https://postgr.es/m/CAApHDvocHp4SXcPeMTwFiCQGaf9JypjTJ3Bh90jcPuGwxyDjjQ%40mail.gmail.com --- 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