]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix openbsd sofia build -- don't ask -- (FSBUILD-256)
authorMichael Jerris <mike@jerris.com>
Tue, 23 Mar 2010 01:20:48 +0000 (01:20 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 23 Mar 2010 01:20:48 +0000 (01:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17072 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/configure.ac

index e5045435e412d1a80ac0f92faf43902c63dfbed3..fcedf33260d26ac0bc0abd02b53775f1e670e02f 100644 (file)
@@ -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