mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:34:04 +02:00
[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
This commit is contained in:
parent
47de1665b1
commit
2a8750a905
30
package/opkg/patches/013-fix-darwin-compile.patch
Normal file
30
package/opkg/patches/013-fix-darwin-compile.patch
Normal file
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user