This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


 Following Mark's remarks about the dangers of changing the order
of the include files, I resubmit the patch without changing the order
of includes.

  Ok to commit?

Pierre 

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.14
diff -u -p -r1.14 linux-fork.c
--- linux-fork.c        8 Oct 2007 14:40:42 -0000       1.14
+++ linux-fork.c        8 Oct 2007 14:42:49 -0000
@@ -30,7 +30,7 @@
 #include <sys/ptrace.h>
 #include "gdb_wait.h"
 #include <sys/param.h>
-#include <dirent.h>
+#include "gdb_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 14:42:50 -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) \





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]