OSDN Git Service

* Makefile.in (rename.o, waitpid.o): Depend on config.h
authorJeff Law <law@redhat.com>
Wed, 26 Jul 2000 23:24:05 +0000 (23:24 +0000)
committerJeff Law <law@redhat.com>
Wed, 26 Jul 2000 23:24:05 +0000 (23:24 +0000)
        * rename.c: include config.h, unistd.h
        * waitpid.c: include config.h, sys/wait.h

libiberty/ChangeLog
libiberty/Makefile.in
libiberty/rename.c
libiberty/waitpid.c

index 61d5c44..5ac8490 100644 (file)
@@ -1,3 +1,10 @@
+2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
+            Jeff Law <law@cygnus.com>
+
+       * 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
+
 2000-07-24     Daniel Berlin <dberlin@redhat.com>
 
        * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to 
index 0463dff..3aef4f5 100644 (file)
@@ -280,6 +280,7 @@ objalloc.o: config.h $(INCDIR)/objalloc.h
 obstack.o: config.h $(INCDIR)/obstack.h
 partition.o: config.h $(INCDIR)/partition.h
 pexecute.o: config.h $(INCDIR)/libiberty.h
+rename.o: config.h
 setenv.o: config.h
 sort.o: config.h $(INCDIR)/sort.h $(INCDIR)/ansidecl.h
 spaces.o: $(INCDIR)/libiberty.h
@@ -294,4 +295,5 @@ xmalloc.o: config.h $(INCDIR)/libiberty.h
 xmemdup.o: config.h $(INCDIR)/libiberty.h
 xstrdup.o: config.h $(INCDIR)/libiberty.h
 xstrerror.o: config.h $(INCDIR)/libiberty.h
+waitpid.o: config.h
 hashtab.o: config.h $(INCDIR)/libiberty.h $(INCDIR)/hashtab.h $(INCDIR)/ansidecl.h
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)
index 23db0b9..2848309 100644 (file)
@@ -1,3 +1,10 @@
+#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;