From 892da3f95f86d8c0dcf2d97b988b5583b1d5ca35 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 11 Jul 2016 09:47:12 +0100 Subject: [PATCH] configure.ac: Look in the right place for `socklen_t'. The old-fashioned version of `AC_CHECK_TYPE' doesn't look in , which is the proper place. Android doesn't appear to define the type in the usual places where Autoconf looks. So use the modern version of the check and look in explicitly. This seems to fix the build on Android. --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1f0ada8..9ff83ba 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,12 @@ dnl Functions. AC_CHECK_FUNCS([snprintf]) dnl Types. -AC_CHECK_TYPE([socklen_t], [int]) +AC_CHECK_TYPE([socklen_t], [], + [AC_DEFINE([socklen_t], [int], + [Define to `int' if does not define])], + [AC_INCLUDES_DEFAULT +#include +]) dnl Which version of struct msghdr do we have? AC_CHECK_MEMBERS([struct msgdr.msg_control],,, [ -- 2.11.0