summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-05-19 22:34:32 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2020-05-19 22:37:41 +0200
commit3b64bed09285ffa1ec723a16717ef6fc59a56091 (patch)
tree702d45d23125282a01fb42aa4d4d07d18191d81d
parent05c377f1980af49936602b9ccc13f7b0e0a2f32a (diff)
big endian: add missing endian.h in sccp.c
sccp.c uses #ifdef OSMO_IS_LITTLE_ENDIAN, but fails to include endian.h, i.e. it would build little endian also on big endian systems. Found by libosmocore/contrib/struct_endianness.py. Change-Id: I5906d94e0e0a74674c3a14cf2ec81c681e696474
-rw-r--r--src/sccp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sccp.c b/src/sccp.c
index cbc63b1..058f20b 100644
--- a/src/sccp.c
+++ b/src/sccp.c
@@ -29,6 +29,7 @@
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>
#include <osmocom/core/logging.h>
+#include <osmocom/core/endian.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/sccp/sccp.h>