diff options
author | Jeff Law <law@redhat.com> | 2000-07-26 23:24:05 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-26 23:24:05 +0000 |
commit | 967192c9d1d79493d6218abb92f1d9d82e68d014 (patch) | |
tree | 9814d2f18df0c9de94b7ee1ecab86e31e0c2c44d | |
parent | fe770478eecedd0f4a82c8d89e4c19328a41f215 (diff) | |
download | gdb-967192c9d1d79493d6218abb92f1d9d82e68d014.tar.gz |
* 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
-rw-r--r-- | libiberty/ChangeLog | 7 | ||||
-rw-r--r-- | libiberty/Makefile.in | 2 | ||||
-rw-r--r-- | libiberty/rename.c | 6 | ||||
-rw-r--r-- | libiberty/waitpid.c | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 61d5c449a58..5ac849099b1 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -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 diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index 0463dff4d8b..3aef4f5a2ae 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -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 diff --git a/libiberty/rename.c b/libiberty/rename.c index ae26e2d0040..2e9dec18fa1 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) diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c index 23db0b932d2..2848309826a 100644 --- a/libiberty/waitpid.c +++ b/libiberty/waitpid.c @@ -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; |