* bsd-kvm.c: Check for nlist.h before including it.
authorMark Kettenis <kettenis@gnu.org>
Mon, 9 Aug 2004 21:10:20 +0000 (21:10 +0000)
committerMark Kettenis <kettenis@gnu.org>
Mon, 9 Aug 2004 21:10:20 +0000 (21:10 +0000)
gdb/ChangeLog
gdb/bsd-kvm.c

index 6bd04ab..07b8ab4 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-07  Robert Millan  <robertmh@gnu.org>
+
+       * bsd-kvm.c: Check for nlist.h before including it.
+
 2004-08-09  Mark Kettenis  <kettenis@gnu.org>
 
        * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
index 083bc92..64869e5 100644 (file)
@@ -31,7 +31,9 @@
 #include "gdb_assert.h"
 #include <fcntl.h>
 #include <kvm.h>
+#ifdef HAVE_NLIST_H
 #include <nlist.h>
+#endif
 #include "readline/readline.h"
 #include <sys/param.h>
 #include <sys/proc.h>