mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-27 01:04:01 +00:00
FS-9078: [sofia-sip] fix linux build of HEPv2/HEPv3 code
This commit is contained in:
parent
bc74c70562
commit
3caa794f7a
@ -1 +1 @@
|
||||
Wed Apr 27 14:46:29 CDT 2016
|
||||
Wed Apr 27 16:01:46 EDT 2016
|
||||
|
@ -218,7 +218,7 @@ fi
|
||||
AC_C_CONST
|
||||
AC_C_INLINE
|
||||
AC_C_INLINE_DEFINE
|
||||
AC_C_BIGENDIAN
|
||||
AC_C_BIGENDIAN(AC_DEFINE([__BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([__BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
|
||||
|
||||
AC_C_VAR_FUNC
|
||||
AC_C_MACRO_FUNCTION
|
||||
|
18
libs/sofia-sip/libsofia-sip-ua/tport/switch.h
Normal file
18
libs/sofia-sip/libsofia-sip-ua/tport/switch.h
Normal file
@ -0,0 +1,18 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#ifndef __LITTLE_ENDIAN
|
||||
#define __LITTLE_ENDIAN 1234
|
||||
#endif
|
||||
#ifndef __BIG_ENDIAN
|
||||
#define __BIG_ENDIAN 4321
|
||||
#endif
|
||||
#ifndef __BYTE_ORDER
|
||||
#ifdef SWITCH_BYTE_ORDER
|
||||
#define __BYTE_ORDER SWITCH_BYTE_ORDER
|
||||
#else
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include <switch.h>
|
||||
#include "ws.h"
|
||||
#include <pthread.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user