aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fcntl.c')
-rw-r--r--lib/fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fcntl.c b/lib/fcntl.c
index b8cb271f55c..be6583565b4 100644
--- a/lib/fcntl.c
+++ b/lib/fcntl.c
@@ -32,7 +32,7 @@
32#endif 32#endif
33#undef fcntl 33#undef fcntl
34 34
35#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 35#if defined _WIN32 && ! defined __CYGWIN__
36/* Get declarations of the native Windows API functions. */ 36/* Get declarations of the native Windows API functions. */
37# define WIN32_LEAN_AND_MEAN 37# define WIN32_LEAN_AND_MEAN
38# include <windows.h> 38# include <windows.h>
@@ -376,7 +376,7 @@ rpl_fcntl (int fd, int action, /* arg */...)
376#if !HAVE_FCNTL 376#if !HAVE_FCNTL
377 case F_GETFD: 377 case F_GETFD:
378 { 378 {
379# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 379# if defined _WIN32 && ! defined __CYGWIN__
380 HANDLE handle = (HANDLE) _get_osfhandle (fd); 380 HANDLE handle = (HANDLE) _get_osfhandle (fd);
381 DWORD flags; 381 DWORD flags;
382 if (handle == INVALID_HANDLE_VALUE 382 if (handle == INVALID_HANDLE_VALUE