Fix Endian for FreeBSD (bug #2679)

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/v1-0@153 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Russell Bryant
2004-10-29 14:12:45 +00:00
parent f678b0be15
commit 1b53ca3726
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
-- Fix Endian to compile for FreeBSD
...
libpri 0.3.0
-- Fix talking to switch
-- Add pri dump

View File

@@ -30,6 +30,9 @@
#include <endian.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
#define __BYTE_ORDER _BYTE_ORDER
#define __BIG_ENDIAN _BIG_ENDIAN
#define __LITTLE_ENDIAN _LITTLE_ENDIAN
#endif
/* Timer values */