X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdup-safer-flag.c;h=e922b91bbe6f13081c962b17569ae43e0a14f5fc;hb=70a72e0f50411ccc776379a761725d8c8bec58a3;hp=b76c6b63cd64cb8133cbdd37e1621eac91e8cd98;hpb=e4ee142063a2f63f483d32b4ab87387db9130804;p=gnulib.git diff --git a/lib/dup-safer-flag.c b/lib/dup-safer-flag.c index b76c6b63c..e922b91bb 100644 --- a/lib/dup-safer-flag.c +++ b/lib/dup-safer-flag.c @@ -1,7 +1,7 @@ /* Duplicate a file descriptor result, avoiding clobbering STD{IN,OUT,ERR}_FILENO, with specific flags. - Copyright (C) 2001, 2004-2006, 2009 Free Software Foundation, Inc. + Copyright (C) 2001, 2004-2006, 2009-2011 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 @@ -28,10 +28,6 @@ #include "cloexec.h" -#ifndef O_CLOEXEC -# define O_CLOEXEC 0 -#endif - /* Like dup, but do not return STDIN_FILENO, STDOUT_FILENO, or STDERR_FILENO. If FLAG contains O_CLOEXEC, behave like fcntl(F_DUPFD_CLOEXEC) rather than fcntl(F_DUPFD). */