aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-05-09 17:20:18 +0000
committerMark Kettenis <kettenis@gnu.org>2005-05-09 17:20:18 +0000
commit8b04f8b6efd558d50aec658e812eddba0892b2b5 (patch)
tree755e1790c82f233c006fdb21241048a57dd95c84
parent34d9ee9e68940274e34bf5de84f46119ecd66855 (diff)
downloadgdb-8b04f8b6efd558d50aec658e812eddba0892b2b5.zip
gdb-8b04f8b6efd558d50aec658e812eddba0892b2b5.tar.gz
gdb-8b04f8b6efd558d50aec658e812eddba0892b2b5.tar.bz2
* defs.h: Unconditionally include <sys/types.h>.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/defs.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 090b5c8..358aa8d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-09 Mark Kettenis <kettenis@gnu.org>
+
+ * defs.h: Unconditionally include <sys/types.h>.
+
2005-05-08 Daniel Jacobowitz <dan@codesourcery.com>
* mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
diff --git a/gdb/defs.h b/gdb/defs.h
index dcb9eb2..9b51712 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -26,14 +26,13 @@
#include "config.h" /* Generated by configure. */
+#include <sys/types.h>
#include <stdio.h>
#include <errno.h> /* System call error return status. */
#include <limits.h>
#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#else
-#include <sys/types.h> /* For size_t. */
#endif
#ifdef HAVE_UNISTD_H