aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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