Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Put back #include <windows.h> in dirmod.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Feb 2017 23:34:09 +0000 (18:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 25 Feb 2017 23:34:09 +0000 (18:34 -0500)
I removed this in commit 9e3755ecb, reasoning that the win32.h
port-specific header file included by c.h would have provided it.
However, that's only true on native win32 builds, not Cygwin builds.

It may be that some of the other <windows.h> inclusions also need
to be put back on the same grounds; but this is the only one that
is clearly meant to be included #ifdef __CYGWIN__, so maybe this is
the extent of the problem.  Awaiting further buildfarm results.

src/port/dirmod.c

index 84039ff38a263cb39f79f1888ad4565e00a9755a..08835962be6b22846051fe8b6923a885d05a963f 100644 (file)
@@ -34,6 +34,7 @@
 #ifndef __CYGWIN__
 #include <winioctl.h>
 #else
+#include <windows.h>
 #include <w32api/winioctl.h>
 #endif
 #endif