[RFA] ARI fix: Replace dirent.h by gdb_dirent.h in linux-fork.c

Pierre Muller muller@ics.u-strasbg.fr
Mon Oct 8 12:34:00 GMT 2007


 This one is almost like the previous that fixed the wait header.

OK to commit?

Pierre Muller

ChangeLog entry:

2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>

        * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of
<dirent.h>.
        Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.



Index: linux-fork.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-fork.c,v
retrieving revision 1.13
diff -u -p -r1.13 linux-fork.c
--- linux-fork.c        8 Oct 2007 07:43:42 -0000       1.13
+++ linux-fork.c        8 Oct 2007 12:27:45 -0000
@@ -27,10 +27,10 @@
 #include "linux-fork.h"
 #include "linux-nat.h"
 #include "gdb_wait.h"
+#include "gdb_dirent.h"

 #include <sys/ptrace.h>
 #include <sys/param.h>
-#include <dirent.h>
 #include <ctype.h>

 struct fork_info *fork_list;
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.940
diff -u -p -r1.940 Makefile.in
--- Makefile.in 8 Oct 2007 07:43:42 -0000       1.940
+++ Makefile.in 8 Oct 2007 12:27:46 -0000
@@ -2236,7 +2236,7 @@ linespec.o: linespec.c $(defs_h) $(symta
        $(objc_lang_h) $(linespec_h) $(exceptions_h) $(language_h)
 linux-fork.o: linux-fork.c $(defs_h) $(inferior_h) $(regcache_h)
$(gdbcmd_h) \
        $(infcall_h) $(gdb_assert_h) $(gdb_string_h) $(linux_fork_h) \
-       $(linux_nat_h) $(gdb_wait_h)
+       $(linux_nat_h) $(gdb_wait_h) $(gdb_dirent_h)
 linux-nat.o: linux-nat.c $(defs_h) $(inferior_h) $(target_h)
$(gdb_string_h) \
        $(gdb_wait_h) $(gdb_assert_h) $(linux_nat_h) $(gdbthread_h) \
        $(gdbcmd_h) $(regcache_h) $(regset_h) $(inf_ptrace_h) $(auxv_h) \




More information about the Gdb-patches mailing list