summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot/files/0001-include-env.h-Ensure-ulong-is-defined.patch
blob: 4d623c1f3469019f2fa4e7511c505de2681f2bf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 718170ff3a5e677db7212a86b129dacb28b1cac2 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@wdc.com>
Date: Mon, 14 Oct 2019 17:37:30 -0700
Subject: [PATCH] include/env.h: Ensure ulong is defined

To fix these failures when building with musl:
   include/env.h:166:1: error: unknown type name 'ulong'; did you mean 'long'?
ensure that ulong is defined.

Upstream-Status: Pending
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 include/env.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/env.h b/include/env.h
index d6c2d751d6..6cf5053431 100644
--- a/include/env.h
+++ b/include/env.h
@@ -13,6 +13,8 @@
 #include <stdbool.h>
 #include <linux/types.h>
 
+typedef unsigned long           ulong;
+
 struct environment_s;
 
 /* Value for environment validity */
-- 
2.24.1