From 9f5bf3b5921ce7c3a0cb91108d0a93ecfb3784c0 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 23 Mar 2010 01:20:48 +0000 Subject: [PATCH] fix openbsd sofia build -- don't ask -- (FSBUILD-256) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17072 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/sofia-sip/configure.ac b/libs/sofia-sip/configure.ac index e5045435e4..fcedf33260 100644 --- a/libs/sofia-sip/configure.ac +++ b/libs/sofia-sip/configure.ac @@ -100,6 +100,14 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then fi fi +# openbsd seems to not define NULL as a void pointer, I blame standards by committee for this. +# This is a dirty hack, but shuts up all the warnings +case "$host" in + *-openbsd*) SOFIA_CFLAGS="$SOFIA_CFLAGS -DNULL='(void *) 0L'";; + *) ;; +esac + + ### checks for header files ### ----------------------- AC_HEADER_STDC