aboutsummaryrefslogtreecommitdiff
path: root/sim/common/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 23:09:48 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 23:09:48 +0000
commit75005b3a8e2897f056a0adabac591fbf4bad91cd (patch)
treedd9eae5df83dcf4f9be16094d08f0da4696e8126 /sim/common/configure.ac
parent2422fad9eb9932dca8cdb98f38d9a024b786be1a (diff)
downloadgdb-75005b3a8e2897f056a0adabac591fbf4bad91cd.zip
gdb-75005b3a8e2897f056a0adabac591fbf4bad91cd.tar.gz
gdb-75005b3a8e2897f056a0adabac591fbf4bad91cd.tar.bz2
sim: use socklen_t with accept()
The accept() function takes a socklen_t, not an int. Using an int causes: dv-sockser.c: In function 'connected_p': dv-sockser.c:273: warning: pointer targets in passing argument 3 of 'accept' differ in signedness So use the same socklen_t detection code as gdb and convert the accept().
Diffstat (limited to 'sim/common/configure.ac')
-rw-r--r--sim/common/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/common/configure.ac b/sim/common/configure.ac
index 5f5845a..39302c8 100644
--- a/sim/common/configure.ac
+++ b/sim/common/configure.ac
@@ -49,5 +49,10 @@ AC_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino],
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif]])
+AC_CHECK_TYPES(socklen_t, [], [],
+[#include <sys/types.h>
+#include <sys/socket.h>
+])
+
AC_OUTPUT(Makefile,
[case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac])