]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Final workaround for the ozmod_isdn libpcap build failure on solaris.
authorStefan Knoblich <stkn@freeswitch.org>
Thu, 7 Jan 2010 16:00:28 +0000 (16:00 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Thu, 7 Jan 2010 16:00:28 +0000 (16:00 +0000)
Define __EXTENSIONS__ before including openzap.h to get the required
u_int/u_short typedefs that would be disabled otherwise, due to either
_XOPEN_SOURCE or _POSIX_C_SOURCE being set.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@949 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_isdn/ozmod_isdn.c

index 68e727ee3dea855f3740299445ec5ba00e55f3e0..e4e9a1511ff7373f5bb20b75cd59fc1b9da75b98 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/**
+ * Workaround for missing u_int / u_short types on solaris
+ */
+#if defined(HAVE_LIBPCAP) && defined(__SunOS)
+#define __EXTENSIONS__
+#endif
+
 #include "openzap.h"
 #include "Q931.h"
 #include "Q921.h"
@@ -53,9 +60,6 @@
 #ifdef HAVE_LIBPCAP
 /*-------------------------------------------------------------------------*/
 /*Q931ToPcap functions*/
-#ifndef WIN32
-#include <sys/socket.h>
-#endif
 #include <pcap.h>
 #endif