Module: kamailio
Branch: master
Commit: 830b48bdf28855fbe305db846533d24c7f84bc32
URL:
https://github.com/kamailio/kamailio/commit/830b48bdf28855fbe305db846533d24…
Author: Spencer Thomason <spencer(a)whiteskycommunications.com>
Committer: Spencer Thomason <spencer(a)whiteskycommunications.com>
Date: 2016-08-09T15:16:17-07:00
auth_diameter: use in tree portable endianness macros
- replace WORDS_BIGENDIAN with __IS_BIG_ENDIAN
- not all platforms define WORDS_BIGENDIAN on big endian archs
---
Modified: modules/auth_diameter/diameter_msg.h
---
Diff:
https://github.com/kamailio/kamailio/commit/830b48bdf28855fbe305db846533d24…
Patch:
https://github.com/kamailio/kamailio/commit/830b48bdf28855fbe305db846533d24…
---
diff --git a/modules/auth_diameter/diameter_msg.h b/modules/auth_diameter/diameter_msg.h
index e0b9551..ebe2ce2 100644
--- a/modules/auth_diameter/diameter_msg.h
+++ b/modules/auth_diameter/diameter_msg.h
@@ -29,6 +29,7 @@
#include "../../str.h"
#include "../../mem/mem.h"
+#include "../../endianness.h"
#define ad_malloc pkg_malloc
#define ad_free pkg_free
@@ -59,7 +60,7 @@
/* message codes
*/
-#ifndef WORDS_BIGENDIAN
+#ifndef __IS_BIG_ENDIAN
#define AS_MSG_CODE 0x12010000
#define AC_MSG_CODE 0x0f010000
#define CE_MSG_CODE 0x01010000
@@ -69,7 +70,6 @@
#define ST_MSG_CODE 0x13010000
#define MASK_MSG_CODE 0xffffff00
#else
- #error BIG endian detected!!
#define AS_MSG_CODE 0x00000112
#define AC_MSG_CODE 0x0000010f
#define CE_MSG_CODE 0x00000101