diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-05-01 16:19:03 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-05-01 16:20:07 +0200 |
commit | 2a4ece2ed3e3766c463ef8f61a3362ba86c8a6cf (patch) | |
tree | 6467bc84c2ced6b3e6c2d74d7de256517752b50d /package/argp-standalone | |
parent | 4e99abc47511c2f0bc3b5a7da9e877aba6a84b9f (diff) | |
download | buildroot-2a4ece2ed3e3766c463ef8f61a3362ba86c8a6cf.tar.gz buildroot-2a4ece2ed3e3766c463ef8f61a3362ba86c8a6cf.zip |
argp-standalone: fix build issue caused by UCHAR_MAX definition
The issue was simply that the patch from Max Filippov forgot to
include <limits.h> to get the definition of UCHAR_MAX.
Fixes:
http://autobuild.buildroot.org/results/bd1/bd120ada4830fda3db96da945513d4f6f7b2d419/
and lots of similar build failures.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/argp-standalone')
-rw-r--r-- | package/argp-standalone/0002-isprint.patch | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/package/argp-standalone/0002-isprint.patch b/package/argp-standalone/0002-isprint.patch index a2962a1631..9c08366f68 100644 --- a/package/argp-standalone/0002-isprint.patch +++ b/package/argp-standalone/0002-isprint.patch @@ -9,10 +9,19 @@ Restrict isprint argument range to values representable by unsigned char. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> --- -diff -bu argp-standalone-1.3/argp.h argp-standalone-1.3-/argp.h ---- argp-standalone-1.3/argp.h 2015-04-28 10:31:39.015319337 +0300 -+++ argp-standalone-1.3-/argp.h 2015-04-28 10:27:46.526770624 +0300 -@@ -577,7 +577,7 @@ +Index: b/argp.h +=================================================================== +--- a/argp.h ++++ b/argp.h +@@ -23,6 +23,7 @@ + + #include <stdio.h> + #include <ctype.h> ++#include <limits.h> + + #define __need_error_t + #include <errno.h> +@@ -577,7 +578,7 @@ else { int __key = __opt->key; @@ -21,9 +30,10 @@ diff -bu argp-standalone-1.3/argp.h argp-standalone-1.3-/argp.h } } -diff -bu argp-standalone-1.3/argp-parse.c argp-standalone-1.3-/argp-parse.c ---- argp-standalone-1.3/argp-parse.c 2015-04-28 10:31:39.016319380 +0300 -+++ argp-standalone-1.3-/argp-parse.c 2015-04-28 10:27:21.810818130 +0300 +Index: b/argp-parse.c +=================================================================== +--- a/argp-parse.c ++++ b/argp-parse.c @@ -1292,7 +1292,7 @@ int __key = __opt->key; /* FIXME: whether or not a particular key implies a short option |