summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;