diff options
author | Marcin Niestroj <m.niestroj@grinn-global.com> | 2017-06-23 12:37:57 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-06-23 21:14:48 +0200 |
commit | 9093a64bcfc6f6e9813cc0cba95e382d25eff079 (patch) | |
tree | 4fe88c36ecd7bce56fc01d45b7cc96ad3fb5b6ca /package/dt-utils/0002-common-Include-sys-types.h-header.patch | |
parent | e4768669a753876a9ae7b6ea8952421db19e7f12 (diff) | |
download | buildroot-9093a64bcfc6f6e9813cc0cba95e382d25eff079.tar.gz buildroot-9093a64bcfc6f6e9813cc0cba95e382d25eff079.zip |
package/dt-utils: new package
Add two upstreamable patches for this package to fix uClibc
and musl builds.
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/dt-utils/0002-common-Include-sys-types.h-header.patch')
-rw-r--r-- | package/dt-utils/0002-common-Include-sys-types.h-header.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/dt-utils/0002-common-Include-sys-types.h-header.patch b/package/dt-utils/0002-common-Include-sys-types.h-header.patch new file mode 100644 index 0000000000..a49d46867b --- /dev/null +++ b/package/dt-utils/0002-common-Include-sys-types.h-header.patch @@ -0,0 +1,38 @@ +From b8bc4e83bf447b6330ece54e94a1684d12ecdd0b Mon Sep 17 00:00:00 2001 +From: Marcin Niestroj <m.niestroj@grinn-global.com> +Date: Fri, 23 Jun 2017 12:00:30 +0200 +Subject: [PATCH] common: Include sys/types.h header +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Build with musl library fails with following error: + +In file included from src/crypto/sha1.c:21:0: +./src/digest.h:95:10: error: unknown type name ‘ulong’ + ulong start, ulong size); +... + +Fix that by including sys/types.h header in common.h, so ulong type +is defined with musl library. + +Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> +--- + src/dt/common.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/dt/common.h b/src/dt/common.h +index 992e28f..1425c53 100644 +--- a/src/dt/common.h ++++ b/src/dt/common.h +@@ -13,6 +13,7 @@ + + #include <sys/ioctl.h> + #include <sys/stat.h> ++#include <sys/types.h> + + #include <mtd/mtd-abi.h> + +-- +2.13.1 + |