aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/ledmon/ledmon/0002-include-sys-select.h-and-sys-types.h.patch
blob: 75bf2b4f5e430568a6a6cd1e95ec364df21b3f43 (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
32
33
34
35
36
37
38
39
40
41
42
43
From 2ee8796db5019341b774bcb4f7d0944d89e1845b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 9 Apr 2019 21:26:55 -0700
Subject: [PATCH 2/2] include sys/select.h and sys/types.h

sys/select.h is needed to provide fd_set definition
sys/types.h is needed for ssize_t

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 src/dellssd.c | 1 +
 src/utils.h   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/dellssd.c b/src/dellssd.c
index 7b8d431..e97fe45 100644
--- a/src/dellssd.c
+++ b/src/dellssd.c
@@ -27,6 +27,7 @@
 #include <unistd.h>
 
 #include <sys/ioctl.h>
+#include <sys/select.h>
 #include <linux/ipmi.h>
 
 #if _HAVE_DMALLOC_H
diff --git a/src/utils.h b/src/utils.h
index 720447a..c106529 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -21,6 +21,7 @@
 #define _UTILS_H_INCLUDED_
 
 #include <getopt.h>
+#include <sys/types.h>
 #include "config_file.h"
 #include "stdlib.h"
 #include "stdint.h"
-- 
2.21.0