fixeria has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/29179 )
Change subject: csn1: #include <stddef.h> in csn1.h for offsetof() ......................................................................
csn1: #include <stddef.h> in csn1.h for offsetof()
Do not require the API user to include <stddef.h>:
note: 'offsetof' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
Change-Id: I2a144c9967b90d78d95db103eebce83822d8c64d --- M include/osmocom/csn1/csn1.h M src/rlcmac/gprs_rlcmac.c 2 files changed, 2 insertions(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved
diff --git a/include/osmocom/csn1/csn1.h b/include/osmocom/csn1/csn1.h index 3b80fad..9b29ba8 100644 --- a/include/osmocom/csn1/csn1.h +++ b/include/osmocom/csn1/csn1.h @@ -23,6 +23,8 @@
#pragma once
+#include <stddef.h> + #include <osmocom/core/bitvec.h> #include "wireshark_compat.h"
diff --git a/src/rlcmac/gprs_rlcmac.c b/src/rlcmac/gprs_rlcmac.c index cd40387..80b399b 100644 --- a/src/rlcmac/gprs_rlcmac.c +++ b/src/rlcmac/gprs_rlcmac.c @@ -26,7 +26,6 @@ */
#include <assert.h> -#include <stddef.h> #include <arpa/inet.h>
#include <osmocom/core/utils.h>