From 475c267f7a9d48a3bc24d39c9a365ce3b06d5f16 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Tue, 27 Nov 2001 15:36:24 +0000 Subject: 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 --- gcc/collect2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/collect2.c') 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. */ -- cgit v1.1