X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-dup-safer.c;h=b71b6c3912ffe0dcf3e3a19dfefa23441baf3582;hb=3fdb706a2a7464a81025bfd07d06c867130f9f1f;hp=6a5c69d802d9b60e8d858415a6be52a787c61130;hpb=9a3454362bbd242121df2ba63aef92fc96a1e390;p=gnulib.git diff --git a/tests/test-dup-safer.c b/tests/test-dup-safer.c index 6a5c69d80..b71b6c391 100644 --- a/tests/test-dup-safer.c +++ b/tests/test-dup-safer.c @@ -1,5 +1,5 @@ /* Test that dup_safer leaves standard fds alone. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 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 @@ -38,9 +38,6 @@ # define setmode(f,m) zero () static int zero (void) { return 0; } #endif -#ifndef O_CLOEXEC -# define O_CLOEXEC 0 -#endif /* This test intentionally closes stderr. So, we arrange to have fd 10 (outside the range of interesting fd's during the test) set up to