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]

[PATCH v2 11/16] sys/types.h cleanup


configure doesn't check for sys/types.h any more, but it still tries
to use the result of the check.  This removes that use as well.

2013-11-06  Tom Tromey  <tromey@redhat.com>

	* configure: Rebuild.
	* configure.ac: Remove check of HAVE_SYS_TYPES_H.
---
 gdb/ChangeLog    | 5 +++++
 gdb/configure    | 4 +---
 gdb/configure.ac | 4 +---
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/gdb/configure b/gdb/configure
index b296796..e00a06b 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -10404,9 +10404,7 @@ _ACEOF
 # Check the return and argument types of ptrace.  No canned test for
 # this, so roll our own.
 gdb_ptrace_headers='
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
 #if HAVE_SYS_PTRACE_H
 # include <sys/ptrace.h>
 #endif
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 061b792..abd6f12 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1163,9 +1163,7 @@ GDB_AC_COMMON
 # Check the return and argument types of ptrace.  No canned test for
 # this, so roll our own.
 gdb_ptrace_headers='
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
 #if HAVE_SYS_PTRACE_H
 # include <sys/ptrace.h>
 #endif
-- 
1.8.1.4


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