projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
[gnulib.git]
/
tests
/
test-dup3.c
diff --git
a/tests/test-dup3.c
b/tests/test-dup3.c
index
a719234
..
f1e978b
100644
(file)
--- a/
tests/test-dup3.c
+++ b/
tests/test-dup3.c
@@
-75,7
+75,7
@@
main ()
{
int use_cloexec;
-#if
defined
O_CLOEXEC
+#if O_CLOEXEC
for (use_cloexec = 0; use_cloexec <= 1; use_cloexec++)
#else
use_cloexec = 0;
@@
-87,7
+87,7
@@
main ()
char buffer[1];
o_flags = 0;
-#if
defined
O_CLOEXEC
+#if O_CLOEXEC
if (use_cloexec)
o_flags |= O_CLOEXEC;
#endif