gnulib: update to 776af40e0
[deliverable/binutils-gdb.git] / gnulib / import / open.c
index 751b42d7dcf6489653ef2a0a892f5e42d965e6f0..85991853318a5c9cae3a50075dd6ca27a1f7d10a 100644 (file)
@@ -1,5 +1,5 @@
 /* Open a descriptor to a file.
-   Copyright (C) 2007-2020 Free Software Foundation, Inc.
+   Copyright (C) 2007-2021 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 static int
 orig_open (const char *filename, int flags, mode_t mode)
 {
+#if defined _WIN32 && !defined __CYGWIN__
+  return _open (filename, flags, mode);
+#else
   return open (filename, flags, mode);
+#endif
 }
 
 /* Specification.  */
This page took 0.027475 seconds and 4 git commands to generate.