X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffcntl.in.h;h=344bbe4d3d93c87689637bee900cbe3e702c20bf;hb=cbf7a84bcf8194d6687244fb0e0701539aeeee21;hp=84ae3eeaa1d43f77d16d8c1540e7b894fab9051b;hpb=51e801f2f297e45a24004ee6256dd1a6c7389074;p=gnulib.git diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index 84ae3eeaa..344bbe4d3 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h @@ -62,6 +62,12 @@ # include #endif +/* Native Windows platforms declare open(), creat() in . */ +#if (@GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \ + && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +# include +#endif + /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */