From 2272a03a3705aaae1f95796895220258eb08f6ba Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 4 Nov 2019 11:03:37 +0100 Subject: gsm: Fix compilation error under some compilers Some compilers don't like declaration of enums in header files like we do sometimes for structs: enum gsm_band; void foobar(enum gsm_band band); triggers: error: use of enum 'gsm_band' without previous declaration Fixes: b99f4ca2d8517d99cdf8aa183dbfda7b233bb781 Related: OS#4244 Change-Id: I6c2102c763f565bbe3c8dd7e5b4e04c4a45fff67 --- include/osmocom/gsm/gsm_utils.h | 1 - include/osmocom/gsm/protocol/gsm_04_08.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h index 7a5da9a6..38a3f6e0 100644 --- a/include/osmocom/gsm/gsm_utils.h +++ b/include/osmocom/gsm/gsm_utils.h @@ -30,7 +30,6 @@ #include #include -#include #define ADD_MODULO(sum, delta, modulo) do { \ if ((sum += delta) >= modulo) \ diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h index b5317d50..68ec4e3e 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08.h +++ b/include/osmocom/gsm/protocol/gsm_04_08.h @@ -9,8 +9,9 @@ #include #include +#include + struct gsm_lchan; -enum gsm_band; /* Chapter 10.5.1.5 */ struct gsm48_classmark1 { -- cgit v1.2.3