From 85a8f7b4c22344da3f8e4d259b2cdf591e31d048 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 21 May 2009 02:28:16 +0000 Subject: [PATCH] cpp: Deal with systems without AI_ADDRCONFIG (OpenBSD) git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@776926 13f79535-47bb-0310-9956-ffa450edef68 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 07fa2e3b..8fd63d5c 100644 --- a/configure.ac +++ b/configure.ac @@ -149,6 +149,16 @@ AC_CHECK_TYPES([ptrdiff_t], [], [exit 1]) AC_STRUCT_TM +dnl NOTE(dreiss): AI_ADDRCONFIG is not defined on OpenBSD. +AC_CHECK_DECL([AI_ADDRCONFIG], [], + [AC_DEFINE([AI_ADDRCONFIG], 0, + [Define if the AI_ADDRCONFIG symbol is unavailable])], + [ + #include + #include + #include +]) + AC_FUNC_ALLOCA AC_FUNC_MALLOC AC_FUNC_MEMCMP -- 2.17.1