summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgoogle@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-09-12 20:47:26 (EDT)
committer google@wwsnet.net <google@wwsnet.net@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2010-09-12 20:47:26 (EDT)
commitd6ea4230ca70c3c7875a61e1c7c1dedb6d1b6fc5 (patch)
tree3480d2076365a156910282e8ea95e03ff35f66b6
parent6dc8a5d00f1f5244d7c3732dbc21b3763e9066b6 (diff)
fix compile issues on OS X and FreeBSD
git-svn-id: http://opkg.googlecode.com/svn/trunk@560 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--libopkg/opkg_download.c1
-rw-r--r--libopkg/pkg.c1
-rw-r--r--tests/libopkg_test.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 4969dd7..e84340a 100644
--- 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"
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index 5b1321e..2e854a9 100644
--- 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"
diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c
index dbe1e7e..31a22b0 100644
--- 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;