From de5dd0f527d23b68beb4d0acba0dff84f2c18ea9 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:27:05 -0500 Subject: 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 --- 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 +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 #include #include +#ifndef __USE_GNU typedef void (*sighandler_t)(int); +#endif #include "pkg.h" #include "pkg_hash.h" -- cgit v0.9.1