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 4969dd7..e84340a 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <stdio.h>
 #include <unistd.h>
+#include <libgen.h>
 
 #include "opkg_download.h"
 #include "opkg_message.h"
index 5b1321e..2e854a9 100644 (file)
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <libgen.h>
 
 #include "pkg.h"
 
index dbe1e7e..31a22b0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <opkg.h>
 
+int opkg_state_changed;
 pkg_t *find_pkg = NULL;