summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/opkg.c2
-rw-r--r--libopkg/opkg_error.h2
-rw-r--r--libopkg/opkg_install.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c
index 4560dc9..fabd520 100644
--- a/libopkg/opkg.c
+++ b/libopkg/opkg.c
@@ -34,6 +34,8 @@
#include <libbb/libbb.h>
+struct errlist* error_list;
+
struct _opkg_t
{
args_t *args;
diff --git a/libopkg/opkg_error.h b/libopkg/opkg_error.h
index 94dbdea..a99da37 100644
--- a/libopkg/opkg_error.h
+++ b/libopkg/opkg_error.h
@@ -51,6 +51,6 @@ struct errlist {
struct errlist * next;
} ;
-struct errlist* error_list;
+extern struct errlist* error_list;
#endif /* OPKG_ERROR_H */
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index 47554d0..370410a 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -21,7 +21,9 @@
#include <glob.h>
#include <time.h>
#include <signal.h>
+#ifndef __USE_GNU
typedef void (*sighandler_t)(int);
+#endif
#include "pkg.h"
#include "pkg_hash.h"