aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/musl-fixes.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-08 06:52:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-08 06:53:20 +0000
commitb6ecb2636c7f0613773f922c290dc02c890c4d8f (patch)
tree083133d5baff9da1644d32e56907afbdc71d13fd /main/open-iscsi/musl-fixes.patch
parent991001c6f9ccf4f57efd4acff85e30801b1d785d (diff)
downloadaports-b6ecb2636c7f0613773f922c290dc02c890c4d8f.tar.bz2
aports-b6ecb2636c7f0613773f922c290dc02c890c4d8f.tar.xz
main/open-iscsi: fix build on musl
Diffstat (limited to 'main/open-iscsi/musl-fixes.patch')
-rw-r--r--main/open-iscsi/musl-fixes.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/open-iscsi/musl-fixes.patch b/main/open-iscsi/musl-fixes.patch
new file mode 100644
index 0000000000..35f11e1a59
--- /dev/null
+++ b/main/open-iscsi/musl-fixes.patch
@@ -0,0 +1,31 @@
+--- ./utils/open-isns/isns.h.orig
++++ ./utils/open-isns/isns.h
+@@ -13,6 +13,7 @@
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <stdio.h>
++#include <time.h>
+
+ #include <isns-proto.h>
+ #include "types.h"
+--- ./utils/fwparam_ibft/fwparam_ppc.c.orig
++++ ./utils/fwparam_ibft/fwparam_ppc.c
+@@ -356,7 +356,7 @@
+ * Sort the nics into "natural" order. The proc fs
+ * device-tree has them in somewhat random, or reversed order.
+ */
+- qsort(niclist, nic_count, sizeof(char *), (__compar_fn_t)nic_cmp);
++ qsort(niclist, nic_count, sizeof(char *), (int (*)(const void *, const void *))nic_cmp);
+
+ snprintf(prefix, sizeof(prefix), "%s/%s", devtree, "aliases");
+ dev_count = 0;
+--- ./usr/idbm.c.orig
++++ ./usr/idbm.c
+@@ -25,6 +25,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <errno.h>
++#include <fcntl.h>
+ #include <dirent.h>
+ #include <limits.h>
+ #include <sys/stat.h>