connection: correct HAVE_DECL_MSG_NOSIGNAL guard
authorWill Thompson <will.thompson@collabora.co.uk>
Fri, 24 Dec 2010 14:40:49 +0000 (14:40 +0000)
committerWill Thompson <will.thompson@collabora.co.uk>
Wed, 5 Jan 2011 12:08:57 +0000 (12:08 +0000)
Helpfully, AC_CHECK_DECLS (which configure.in uses to define
HAVE_DECL_MSG_NOSIGNAL) behaves differently to every similar AC_CHECK_*
macro and, rather than producing #undef HAVE_DECL_MSG_NOSIGNAL if the
given symbol is not found, instead produces #define
HAVE_DECL_MSG_NOSIGNAL 0.

Mike McQuaid's patch fixes the uses of this constant in sysdeps-unix;
with this patch, all code is guarded consistently and correctly.

dbus/dbus-connection.c

index 5a595d8..6779b6a 100644 (file)
@@ -233,7 +233,7 @@ struct DBusPreallocatedSend
   DBusList *counter_link;     /**< Preallocated link in the resource counter */
 };
 
-#ifdef HAVE_DECL_MSG_NOSIGNAL
+#if HAVE_DECL_MSG_NOSIGNAL
 static dbus_bool_t _dbus_modify_sigpipe = FALSE;
 #else
 static dbus_bool_t _dbus_modify_sigpipe = TRUE;