projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
[gnulib.git]
/
lib
/
fcntl.in.h
diff --git
a/lib/fcntl.in.h
b/lib/fcntl.in.h
index
0a07221
..
344bbe4
100644
(file)
--- a/
lib/fcntl.in.h
+++ b/
lib/fcntl.in.h
@@
-1,6
+1,6
@@
/* Like <fcntl.h>, but with non-working flags defined to 0.
/* Like <fcntl.h>, but with non-working flags defined to 0.
- Copyright (C) 2006-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
2
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
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
@@
-62,6
+62,12
@@
# include <unistd.h>
#endif
# include <unistd.h>
#endif
+/* Native Windows platforms declare open(), creat() in <io.h>. */
+#if (@GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \
+ && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+# include <io.h>
+#endif
+
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
@@
-177,12
+183,12
@@
_GL_WARN_ON_USE (openat, "openat is not portable - "
/* Fix up the O_* macros. */
#if !defined O_DIRECT && defined O_DIRECTIO
/* Fix up the O_* macros. */
#if !defined O_DIRECT && defined O_DIRECTIO
-/* Tru64 spells it
`
O_DIRECTIO'. */
+/* Tru64 spells it
'
O_DIRECTIO'. */
# define O_DIRECT O_DIRECTIO
#endif
#if !defined O_CLOEXEC && defined O_NOINHERIT
# define O_DIRECT O_DIRECTIO
#endif
#if !defined O_CLOEXEC && defined O_NOINHERIT
-/* Mingw spells it
`
O_NOINHERIT'. */
+/* Mingw spells it
'
O_NOINHERIT'. */
# define O_CLOEXEC O_NOINHERIT
#endif
# define O_CLOEXEC O_NOINHERIT
#endif