aboutsummaryrefslogtreecommitdiffstats
path: root/package/opkg/patches/013-fix-darwin-compile.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-07-21 22:02:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-07-21 22:02:25 +0000
commit29ff3d0fe538e0f6267d5aaa57786452d12cbd1e (patch)
treeceff8308467368e2df491ca88dffd8405fc2d604 /package/opkg/patches/013-fix-darwin-compile.patch
parenta5e5298edc72026d074a12ade3c0c52ac1871981 (diff)
downloadmaster-187ad058-29ff3d0fe538e0f6267d5aaa57786452d12cbd1e.tar.gz
master-187ad058-29ff3d0fe538e0f6267d5aaa57786452d12cbd1e.tar.bz2
master-187ad058-29ff3d0fe538e0f6267d5aaa57786452d12cbd1e.zip
[package] opkg: fix host compilation on Darwin (libopkg_test failed to link)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22340 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/opkg/patches/013-fix-darwin-compile.patch')
-rw-r--r--package/opkg/patches/013-fix-darwin-compile.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/opkg/patches/013-fix-darwin-compile.patch b/package/opkg/patches/013-fix-darwin-compile.patch
new file mode 100644
index 0000000000..6f34fc10c8
--- /dev/null
+++ b/package/opkg/patches/013-fix-darwin-compile.patch
@@ -0,0 +1,30 @@
+--- a/libopkg/opkg_download.c
++++ b/libopkg/opkg_download.c
+@@ -21,6 +21,7 @@
+
+ #include <stdio.h>
+ #include <unistd.h>
++#include <libgen.h>
+
+ #include "opkg_download.h"
+ #include "opkg_message.h"
+--- a/libopkg/pkg.c
++++ b/libopkg/pkg.c
+@@ -21,6 +21,7 @@
+ #include <string.h>
+ #include <ctype.h>
+ #include <unistd.h>
++#include <libgen.h>
+
+ #include "pkg.h"
+
+--- a/tests/libopkg_test.c
++++ b/tests/libopkg_test.c
+@@ -5,6 +5,7 @@
+
+ #include <opkg.h>
+
++int opkg_state_changed;
+ pkg_t *find_pkg = NULL;
+
+