Revision
17072
Author
mikej
Date
2010-03-22 20:20:48 -0500 (Mon, 22 Mar 2010)

Log Message

fix openbsd sofia build -- don't ask -- (FSBUILD-256)

Modified Paths

Diff

Modified: freeswitch/trunk/libs/sofia-sip/configure.ac (17071 => 17072)


--- freeswitch/trunk/libs/sofia-sip/configure.ac	2010-03-22 23:05:20 UTC (rev 17071)
+++ freeswitch/trunk/libs/sofia-sip/configure.ac	2010-03-23 01:20:48 UTC (rev 17072)
@@ -100,6 +100,14 @@
     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