X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdup2.c;h=f581d855de378d7c05a544a1ca2b3d52d346104a;hb=d4304bfbaa7372892056b7c35455c9e35eeaced0;hp=77deaf62d0b4751673d8c7f033020d53c9f23c7c;hpb=d1eb42bdbbaf00d38b2a479e9aa40207b79bd090;p=gnulib.git diff --git a/lib/dup2.c b/lib/dup2.c index 77deaf62d..f581d855d 100644 --- a/lib/dup2.c +++ b/lib/dup2.c @@ -1,5 +1,5 @@ /* Duplicate an open file descriptor to a specified file descriptor. - Copyright (C) 1999, 2004 Free Software Foundation, Inc. + Copyright (C) 1999, 2004, 2005 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 @@ -17,17 +17,13 @@ /* written by Paul Eggert */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include #endif #include - #include - -#if HAVE_UNISTD_H -# include -#endif +#include #ifndef F_DUPFD static int