summaryrefslogtreecommitdiff
path: root/libiberty/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/waitpid.c')
-rw-r--r--libiberty/waitpid.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c
deleted file mode 100644
index 2848309826a..00000000000
--- a/libiberty/waitpid.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h>
-#endif
-
-int
-waitpid (pid, stat_loc, options)
- int pid, *stat_loc, options;
-{
- for (;;)
- {
- int wpid = wait(stat_loc);
- if (wpid == pid || wpid == -1)
- return wpid;
- }
-}