aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/openipmi/files/include_sys_types.patch
blob: 18129e6fcb95d50682a2efdba0e678bb8bf12cf2 (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 d667aedc37aeabdb9f8574ee0b9cf85b844ca2d2 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 2 Jun 2017 21:58:32 -0700
Subject: [PATCH] openipmi: Fix build with musl

include sys/types.h for u_int32_t

ui.c:340:5: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
     u_int32_t     addr;
     ^~~~~~~~~

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 ui/ui.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/ui.c b/ui/ui.c
index 9c6a51f..34f7e34 100644
--- a/ui/ui.c
+++ b/ui/ui.c
@@ -42,6 +42,7 @@
 #include <fcntl.h>
 #include <time.h>
 #include <sys/time.h>
+#include <sys/types.h>
 #include <ctype.h>
 
 #include <OpenIPMI/ipmi_err.h>