summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-09 13:47:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-09 13:47:52 +0000
commitd73f553b0ba3fd7c86df907e3fc9fb2da50335e6 (patch)
tree4272cff1ad8fb3d314543eb923035fffb335edb2
parent29dffbbab42e042495efdcf4a65c250a0e331681 (diff)
downloadmtk-20170518-d73f553b0ba3fd7c86df907e3fc9fb2da50335e6.zip
mtk-20170518-d73f553b0ba3fd7c86df907e3fc9fb2da50335e6.tar.gz
mtk-20170518-d73f553b0ba3fd7c86df907e3fc9fb2da50335e6.tar.bz2
ubi-utils: fix musl compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41060
-rw-r--r--package/utils/ubi-utils/patches/100-fix_includes.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/utils/ubi-utils/patches/100-fix_includes.patch b/package/utils/ubi-utils/patches/100-fix_includes.patch
new file mode 100644
index 0000000..44421d0
--- /dev/null
+++ b/package/utils/ubi-utils/patches/100-fix_includes.patch
@@ -0,0 +1,30 @@
+--- a/lib/libfec.c
++++ b/lib/libfec.c
+@@ -45,6 +45,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ /*
+ * stuff used for testing purposes only
+--- a/serve_image.c
++++ b/serve_image.c
+@@ -3,7 +3,6 @@
+
+ #include <time.h>
+ #include <errno.h>
+-#include <error.h>
+ #include <netdb.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+--- a/recv_image.c
++++ b/recv_image.c
+@@ -4,7 +4,6 @@
+ #define _BSD_SOURCE /* struct ip_mreq */
+
+ #include <errno.h>
+-#include <error.h>
+ #include <stdio.h>
+ #include <netdb.h>
+ #include <stdlib.h>