From f0bd33372897373b3ee6e42791e01447edb2699f Mon Sep 17 00:00:00 2001 From: Brandon Carpenter Date: Fri, 6 Dec 2013 10:59:07 -0800 Subject: [PATCH] Move {SO,LOCAL}_PEERCRED checks to C++ context. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 40418467..a97de859 100644 --- a/configure.ac +++ b/configure.ac @@ -349,12 +349,12 @@ if test "x$zmq_disable_eventfd" != "xyes"; then [AC_DEFINE(ZMQ_HAVE_EVENTFD, 1, [Have eventfd extension.])]) fi -AC_CHECK_DECLS([SO_PEERCRED], [AC_DEFINE(ZMQ_HAVE_SO_PEERCRED, 1, [Have SO_PEERCRED socket option])], [], [#include ]) -AC_CHECK_DECLS([LOCAL_PEERCRED], [AC_DEFINE(ZMQ_HAVE_LOCAL_PEERCRED, 1, [Have LOCAL_PEERCRED socket option])], [], [#include ]) - # Use c++ in subsequent tests AC_LANG_PUSH(C++) +AC_CHECK_DECLS([SO_PEERCRED], [AC_DEFINE(ZMQ_HAVE_SO_PEERCRED, 1, [Have SO_PEERCRED socket option])], [], [#include ]) +AC_CHECK_DECLS([LOCAL_PEERCRED], [AC_DEFINE(ZMQ_HAVE_LOCAL_PEERCRED, 1, [Have LOCAL_PEERCRED socket option])], [], [#include ]) + AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE