aboutsummaryrefslogtreecommitdiff
path: root/libiberty/rename.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-26 23:24:05 +0000
committerJeff Law <law@redhat.com>2000-07-26 23:24:05 +0000
commit90aaccd1f26c3ac0dc5963d6db4b0f0fcfc2c1d6 (patch)
tree4e41b27e25af96469706357c8ef601ab339f8b52 /libiberty/rename.c
parentfe9f384f163d7fc5c2126b32e59ed01066979a2d (diff)
downloadgdb-90aaccd1f26c3ac0dc5963d6db4b0f0fcfc2c1d6.zip
gdb-90aaccd1f26c3ac0dc5963d6db4b0f0fcfc2c1d6.tar.gz
gdb-90aaccd1f26c3ac0dc5963d6db4b0f0fcfc2c1d6.tar.bz2
* Makefile.in (rename.o, waitpid.o): Depend on config.h
* rename.c: include config.h, unistd.h * waitpid.c: include config.h, sys/wait.h
Diffstat (limited to 'libiberty/rename.c')
-rw-r--r--libiberty/rename.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libiberty/rename.c b/libiberty/rename.c
index ae26e2d..2e9dec1 100644
--- a/libiberty/rename.c
+++ b/libiberty/rename.c
@@ -3,7 +3,13 @@
/* Rename a file. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <errno.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
int
rename (zfrom, zto)