summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-31 11:47:38 +0100
committerHarald Welte <laforge@gnumonks.org>2011-01-31 18:14:08 +0300
commitca1d468c1834448708e2f20d11a653297acb6d69 (patch)
treeb5a80b578a67dfd8278de6e73e94e914ac4ff5d9
parent9fa56a331ce29305835b9561ed9cc3ef169be1b9 (diff)
vsprintf.c: Fix compilation by including limits.h
The INT_MAX define was not known to this code with a GCC 4.5.2/binutils 2.21/newlib 1.19.0 toolchain as build for osmocomBB. Include limits.h to fix that.
-rw-r--r--firmware/lib/vsprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/lib/vsprintf.c b/firmware/lib/vsprintf.c
index 5da7c02..799eb78 100644
--- a/firmware/lib/vsprintf.c
+++ b/firmware/lib/vsprintf.c
@@ -17,6 +17,7 @@
*/
#include <stdarg.h>
+#include <limits.h>
#include <sys/types.h>
#include <string.h>
#include <asm/ctype.h>
personal git repositories of Harald Welte. Your mileage may vary