* Makefile.in (rename.o, waitpid.o): Depend on config.h
[external/binutils.git] / libiberty / rename.c
index ae26e2d..2e9dec1 100644 (file)
@@ -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)