[PATCH 1/2] vsprintf.c: Fix compilation by including limits.h

Holger Hans Peter Freyther zecke at selfish.org
Mon Jan 31 10:47:38 UTC 2011


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.
---
 firmware/lib/vsprintf.c |    1 +
 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>
-- 
1.7.3.5


--------------090305060903020708070409
Content-Type: text/x-patch;
 name="0002-typo-Fix-typo-transform-reqyests-to-requests.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-typo-Fix-typo-transform-reqyests-to-requests.patch"



More information about the baseband-devel mailing list