mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
Set byte order defines when compiled on OSX
Byte order defines have a DARWIN prefix on OSX so the values openbsc expects are set from their Darwin counterparts when compiled on OSX.
This commit is contained in:
committed by
Harald Welte
parent
511f9c3e4a
commit
aff20717e4
@@ -42,7 +42,13 @@
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef __BYTE_ORDER
|
||||
#error "__BYTE_ORDER should be defined by someone"
|
||||
# ifdef __APPLE__
|
||||
# define __BYTE_ORDER __DARWIN_BYTE_ORDER
|
||||
# define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
|
||||
# define __BIG_ENDIAN __DARWIN_BIG_ENDIAN
|
||||
# else
|
||||
# error "__BYTE_ORDER should be defined by someone"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* according to rtp_proxy.c RFC 3550 */
|
||||
|
||||
@@ -42,7 +42,13 @@
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef __BYTE_ORDER
|
||||
#error "__BYTE_ORDER should be defined by someone"
|
||||
# ifdef __APPLE__
|
||||
# define __BYTE_ORDER __DARWIN_BYTE_ORDER
|
||||
# define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
|
||||
# define __BIG_ENDIAN __DARWIN_BIG_ENDIAN
|
||||
# else
|
||||
# error "__BYTE_ORDER should be defined by someone"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
static LLIST_HEAD(rtp_sockets);
|
||||
|
||||
Reference in New Issue
Block a user