]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (rename.o, waitpid.o): Depend on config.h
authorRodney Brown <RodneyBrown@pmsc.com>
Wed, 26 Jul 2000 23:23:24 +0000 (17:23 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 26 Jul 2000 23:23:24 +0000 (17:23 -0600)
        * 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

Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r35272

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

index 6b97b1da56b52765a94c4d8a4a40b9caee58e1bc..d996712cbdd7c605f87ec2ebd0a787549281e169 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-21  Alex Samuel  <samuel@codesourcery.com>
 
        * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
index 68aba7120327d4091b076b8e80c0616821c48bff..242fde7841bb97d94d4cc6d823186d27c9a00200 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
@@ -295,4 +296,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 ae26e2d004079e0e955369cb5f8982bf76ee9037..2e9dec18fa1d38c50fbaaf5956bbcb9e24192d50 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 23db0b932d2e2c9d5d6b9b3a561e420e04ac54b9..2848309826a83f0735f0a85eb0521c5d8a135762 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;