f9c2858df1
Add patches fixing a number of build failures under musl. The first patch fixes the following autobuild failures: http://autobuild.buildroot.net/results/bc8/bc8f97f0739e5b842057fdf60eb9309c3e30fac1/ http://autobuild.buildroot.net/results/937/937163f988bb3680630544f6c0ed45b18bc83511/ http://autobuild.buildroot.net/results/862/862af4c6be4b78e65528195305653eedac4163c6/ and others. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 lines
784 B
Diff
27 lines
784 B
Diff
Add missing sys/select.h include
|
||
|
||
POSIX.1-2001 requires sys/select.h for select(). Fixes the following build
|
||
failure under musl:
|
||
|
||
ipmimv.c: In function ‘ipmicmd_mv’:
|
||
ipmimv.c:345:5: error: unknown type name ‘fd_set’
|
||
fd_set readfds;
|
||
^
|
||
ipmimv.c:346:20: error: storage size of ‘tv’ isn’t known
|
||
struct timeval tv;
|
||
^
|
||
|
||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||
|
||
diff -Nuar ipmiutil-2.9.5-orig/util/ipmimv.c ipmiutil-2.9.5/util/ipmimv.c
|
||
--- ipmiutil-2.9.5-orig/util/ipmimv.c 2014-11-04 19:46:11.000000000 +0200
|
||
+++ ipmiutil-2.9.5/util/ipmimv.c 2015-09-29 09:16:08.862828679 +0300
|
||
@@ -62,6 +62,7 @@
|
||
#include <time.h>
|
||
#include <errno.h>
|
||
#include <sys/ioctl.h>
|
||
+#include <sys/select.h>
|
||
#if defined(MACOS)
|
||
#include <sys/time.h>
|
||
#else
|