summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:27:05 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-15 00:27:05 (EST)
commitde5dd0f527d23b68beb4d0acba0dff84f2c18ea9 (patch)
tree45c8708cfdf485a9326f3df15bbcc5fdb27bed5c
parentb70dc315e405d3c59dae2a795462f85d02cbb8df (diff)
remove build error on gcc 3.4
Thanks for jserv found and fix this. git-svn-id: http://opkg.googlecode.com/svn/trunk@145 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-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"