fix compile issues on OS X and FreeBSD
authorgoogle@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 13 Sep 2010 00:47:26 +0000 (00:47 +0000)
committergoogle@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 13 Sep 2010 00:47:26 +0000 (00:47 +0000)
git-svn-id: http://opkg.googlecode.com/svn/trunk@560 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg_download.c
libopkg/pkg.c
tests/libopkg_test.c

index 4969dd73692fd7da169da1db2284fcc7660d05c0..e84340aca5284fc4529f30f4a1c28f89aa3ac352 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <stdio.h>
 #include <unistd.h>
+#include <libgen.h>
 
 #include "opkg_download.h"
 #include "opkg_message.h"
index 5b1321e6c7c544891b535b34f0d0862c31b94d07..2e854a95766c30f8f7cb1d53f44acbdf076f5bf7 100644 (file)
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <libgen.h>
 
 #include "pkg.h"
 
index dbe1e7e37b4fbf759a72a6d703a0fea208ef7d91..31a22b0b51df2d7a16617be4d2b5a164e7ccbdf4 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <opkg.h>
 
+int opkg_state_changed;
 pkg_t *find_pkg = NULL;