X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdup-safer-flag.c;h=e4d1b2118cac0f8e77f12c275c8feabab18ef8a0;hb=25b6b5120113989e0b91de9d0b75d3d625bbc753;hp=b76c6b63cd64cb8133cbdd37e1621eac91e8cd98;hpb=e4ee142063a2f63f483d32b4ab87387db9130804;p=gnulib.git diff --git a/lib/dup-safer-flag.c b/lib/dup-safer-flag.c index b76c6b63c..e4d1b2118 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-2012 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 @@ -26,12 +26,6 @@ #include #include -#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). */