From b6c5a7e33f386738f2dd5a76b11f9f8a7ce2f130 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Fri, 5 Nov 2021 15:11:30 +0200 Subject: [PATCH] [include] Define struct modem in types.h Not having it defined prior to use may result in weird compilation errors about pointer type being incompatible with iself, e.g. expected struct ofono_modem * but argument is of type struct ofono_modem * --- ofono/include/types.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofono/include/types.h b/ofono/include/types.h index be523c16..53b4e980 100644 --- a/ofono/include/types.h +++ b/ofono/include/types.h @@ -37,6 +37,8 @@ extern "C" { typedef int ofono_bool_t; +struct ofono_modem; + /* MCC is always three digits. MNC is either two or three digits */ #define OFONO_MAX_MCC_LENGTH 3 #define OFONO_MAX_MNC_LENGTH 3