X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdup-safer-flag.c;h=2d860fbc73d8a69c9dd0b46c7ecde0bdd8624cd6;hb=7ef6c64e210ac0979d7e8ac69bc5b5208c2405ab;hp=b76c6b63cd64cb8133cbdd37e1621eac91e8cd98;hpb=e4ee142063a2f63f483d32b4ab87387db9130804;p=gnulib.git diff --git a/lib/dup-safer-flag.c b/lib/dup-safer-flag.c index b76c6b63c..2d860fbc7 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-2014 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). */