aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-11-27 15:36:24 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-11-27 15:36:24 +0000
commit475c267f7a9d48a3bc24d39c9a365ce3b06d5f16 (patch)
treeb4b3cf63e86e012917e8cc2f32151469a46fbd26 /gcc/collect2.c
parentec8e621da9820b3bb8d316a29195da93c926e8c1 (diff)
downloadgcc-475c267f7a9d48a3bc24d39c9a365ce3b06d5f16.zip
gcc-475c267f7a9d48a3bc24d39c9a365ce3b06d5f16.tar.gz
gcc-475c267f7a9d48a3bc24d39c9a365ce3b06d5f16.tar.bz2
collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
* collect2.c: Check HAVE_DUP2 instead of NO_DUP2. (dup2): Make static and add prototype. * m68k/plexus.h: Don't define NO_DUP2. * configure.in (AC_CHECK_FUNCS): Add dup2. * config.in, configure: Regenerate. From-SVN: r47379
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index a5d5472..f527b94 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -309,8 +309,9 @@ static int ignore_library PARAMS ((const char *));
#endif
static char *extract_string PARAMS ((const char **));
-#ifdef NO_DUP2
-int
+#ifndef HAVE_DUP2
+static int dup2 PARAMS ((int, int));
+static int
dup2 (oldfd, newfd)
int oldfd;
int newfd;
@@ -329,7 +330,7 @@ dup2 (oldfd, newfd)
return fd;
}
-#endif
+#endif /* ! HAVE_DUP2 */
/* Delete tempfiles and exit function. */