diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-19 01:20:34 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-19 01:20:34 +0000 |
commit | b88c06b5d7e46d1db8f85fd29fee3a13da956ac5 (patch) | |
tree | 1e592d6524a057c57b0bac43a51c932c226f3786 /gcc/collect2.c | |
parent | 70e053dd2a8ed7da332aa8a538c123c6aab29503 (diff) | |
download | gcc-b88c06b5d7e46d1db8f85fd29fee3a13da956ac5.tar.gz |
* collect2.c (dup2): Delete.
* configure.ac: Don't check for dup2.
* config.in, configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103263 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index a813e51e019..f4cc46aad50 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -271,26 +271,6 @@ static char *resolve_lib_name (const char *); #endif static char *extract_string (const char **); -#ifndef HAVE_DUP2 -static int -dup2 (int oldfd, int newfd) -{ - int fdtmp[256]; - int fdx = 0; - int fd; - - if (oldfd == newfd) - return oldfd; - close (newfd); - while ((fd = dup (oldfd)) != newfd && fd >= 0) /* good enough for low fd's */ - fdtmp[fdx++] = fd; - while (fdx > 0) - close (fdtmp[--fdx]); - - return fd; -} -#endif /* ! HAVE_DUP2 */ - /* Delete tempfiles and exit function. */ void |