This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [RFC] GDBserver compiler warnings patch


   Date: Mon, 13 Jun 2005 18:43:30 -0400
   From: Daniel Jacobowitz <drow@false.org>

   > 2. On OpenBSD (and possibly other BSD-like systems) you'll need to
   >    #include <sys/types.h> to get socklen_t.
   > 
   > I propose to replace the above with what I just committed to gdb's
   > configure.ac:
   > 
   > AC_CHECK_TYPES(socklen_t, [], [],
   > [#include <sys/types.h>
   > #include <sys/socket.h>
   > ])

   That's fine; could you take care of it?

I committed the attached:

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* configure.ac: Simplify and improve check for socklen_t.
	* configure, config.in: Regenerate.

Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/configure.ac,v
retrieving revision 1.3
diff -u -p -r1.3 configure.ac
--- configure.ac 13 Jun 2005 01:59:22 -0000 1.3
+++ configure.ac 14 Jun 2005 21:33:17 -0000
@@ -40,10 +40,10 @@ AC_CHECK_HEADERS(sgtty.h termio.h termio
 
 BFD_NEED_DECLARATION(strerror)
 
-AC_CHECK_TYPE(socklen_t,
-	      [AC_DEFINE(HAVE_SOCKLEN_T, 1, [Define if you have socklen_t.])],
-	      [], [#include <sys/socket.h>])
-
+AC_CHECK_TYPES(socklen_t, [], [],
+[#include <sys/types.h>
+#include <sys/socket.h>
+])
 . ${srcdir}/configure.srv
 
 if test "${srv_linux_usrregs}" = "yes"; then


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