aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-07-30 21:33:48 +0200
committerHarald Welte <laforge@osmocom.org>2020-07-30 21:35:10 +0200
commit701968f286f5fa9a85e75bb561c49cb0fb984e25 (patch)
treebe541c6141cf29eaaa8eb54289513e6a8368aa18
parent6509d202d95de465f4f9996d58af6f2bde84d10d (diff)
gsm0411_{smc,smr}.c: Work around newlib bug
At least on Debian unstable, newlib is [currently?] buggy in that we need to include sys/types.h before including inttypes.h, otherwise PRIu64 is not defined. Change-Id: Ic1c9cdf66cfd5b82bd7e20eaaf05b10e6bdb675e Closes: OS#4686
-rw-r--r--src/gsm/gsm0411_smc.c3
-rw-r--r--src/gsm/gsm0411_smr.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gsm/gsm0411_smc.c b/src/gsm/gsm0411_smc.c
index 50d0f3ec..a7d5e11c 100644
--- a/src/gsm/gsm0411_smc.c
+++ b/src/gsm/gsm0411_smc.c
@@ -51,8 +51,9 @@
*
*/
-#include <string.h>
+#include <sys/types.h>
#include <inttypes.h>
+#include <string.h>
#include <errno.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/logging.h>
diff --git a/src/gsm/gsm0411_smr.c b/src/gsm/gsm0411_smr.c
index 21d28c51..02b41995 100644
--- a/src/gsm/gsm0411_smr.c
+++ b/src/gsm/gsm0411_smr.c
@@ -49,9 +49,10 @@
*/
+#include <sys/types.h>
+#include <inttypes.h>
#include <string.h>
#include <errno.h>
-#include <inttypes.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/logging.h>
#include <osmocom/core/timer.h>