freebsd-ports/net/openbsc/files/patch-include-openbsc-rtp.h
Kurt Jaeger cda622b482 New port: net/openbsc
OpenBSC is a minimalistic implementation of the GSM Network, with
particular emphasis on the functionality typically provided by the BSC,
MSC, HLR, VLR and SMSC.

WWW: http://openbsc.osmocom.org/trac/

PR:		197784
Submitted by:	Nikola Kolev <koue@chaosophia.net>
2015-10-17 16:55:31 +00:00

15 lines
452 B
C

--- include/openbsc/rtp.h.orig 2015-02-10 22:03:25 UTC
+++ include/openbsc/rtp.h
@@ -10,6 +10,12 @@
# define __BYTE_ORDER __DARWIN_BYTE_ORDER
# define __LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
# define __BIG_ENDIAN __DARWIN_BIG_ENDIAN
+# elif defined(__FreeBSD__)
+# if __FreeBSD_version < 1000000
+# include <machine/endian.h>
+# else
+# include <x86/endian.h>
+# endif
# else
# error "__BYTE_ORDER should be defined by someone"
# endif