aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ipmiutil/fixups.patch
diff options
context:
space:
mode:
authorPaul Kilar <pkilar@gmail.com>2014-07-14 11:14:11 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-15 14:09:09 +0000
commit86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8 (patch)
treec962d9f8506d8b894623764361cf100f0a050693 /testing/ipmiutil/fixups.patch
parentd7c803a354733ebb716fe90dc06ceaeaddb203a6 (diff)
downloadaports-86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8.tar.bz2
aports-86ae8ce238156a4bb9ba0aeda82bb50c60e74ea8.tar.xz
testing/ipmiutil: patch to compile with musl
Diffstat (limited to 'testing/ipmiutil/fixups.patch')
-rw-r--r--testing/ipmiutil/fixups.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/ipmiutil/fixups.patch b/testing/ipmiutil/fixups.patch
new file mode 100644
index 0000000000..dea7adae02
--- /dev/null
+++ b/testing/ipmiutil/fixups.patch
@@ -0,0 +1,33 @@
+--- a/util/imb_api.h
++++ b/util/imb_api.h
+@@ -49,8 +49,8 @@
+ /* DOS defines wchar_t in stdlib.h */
+ #else
+ // defined(LINUX) | defined(SOLARIS)
+-#ifndef _WCHAR_T
+-#define _WCHAR_T
++#ifndef __DEFINED_wchar_t
++#define __DEFINED_wchar_t
+ typedef long wchar_t;
+ #endif
+ #endif
+--- a/util/mem_if.c
++++ b/util/mem_if.c
+@@ -65,6 +65,7 @@
+ #include <sys/param.h>
+ #include <sys/mman.h>
+ #include <sys/ioctl.h>
++#include <linux/param.h>
+ #endif
+ #if defined(SOLARIS) || defined(BSD)
+ #define EXEC_PAGESIZE 4096
+--- a/util/ipmimv.c
++++ b/util/ipmimv.c
+@@ -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