diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-01-06 12:37:45 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-24 09:40:29 +0000 |
commit | b207868cddcad850078fd061c4150c6ff92acbba (patch) | |
tree | 8c7b5c44312d7d9087c2139ea9ae3e7977a29a0d /meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch | |
parent | 1076499cdf6bd4e77b2fd8333c6a92b41545663e (diff) | |
download | poky-b207868cddcad850078fd061c4150c6ff92acbba.tar.gz |
pax: Fix build with musl
There are several BSD specific assumptions
and some GNU specific ones.
(From OE-Core rev: 49e8fc6c4511e026dee176422cf3a7b7558c7cfc)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch')
-rw-r--r-- | meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch b/meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch new file mode 100644 index 0000000000..58ac9ce4a0 --- /dev/null +++ b/meta/recipes-extended/pax/pax/0001-use-strtoll-instead-of-strtoq.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From b1f50320332c9c90fa33ab136ef0ec2d12cda461 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 6 Jan 2016 12:30:52 -0800 | ||
4 | Subject: [PATCH] use strtoll instead of strtoq | ||
5 | |||
6 | Use LLONG_MAX instead of LONG_LONG_MAX | ||
7 | LONG_LONG_MAX is GNU specific | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | src/options.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/src/options.c b/src/options.c | ||
17 | index da8b4cf..c663b4e 100644 | ||
18 | --- a/src/options.c | ||
19 | +++ b/src/options.c | ||
20 | @@ -1547,8 +1547,8 @@ str_offt (char *val) | ||
21 | |||
22 | #if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ | ||
23 | || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) | ||
24 | - num = strtoq (val, &expr, 0); | ||
25 | - if ((num == LONG_LONG_MAX) || (num <= 0) || (expr == val)) | ||
26 | + num = strtoll (val, &expr, 0); | ||
27 | + if ((num == LLONG_MAX) || (num <= 0) || (expr == val)) | ||
28 | #else | ||
29 | num = strtol (val, &expr, 0); | ||
30 | if ((num == LONG_MAX) || (num <= 0) || (expr == val)) | ||
31 | -- | ||
32 | 2.6.4 | ||
33 | |||