remove build error on gcc 3.4
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:27:05 +0000 (05:27 +0000)
committerticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Mon, 15 Dec 2008 05:27:05 +0000 (05:27 +0000)
Thanks for jserv found and fix this.

git-svn-id: http://opkg.googlecode.com/svn/trunk@145 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

libopkg/opkg.c
libopkg/opkg_error.h
libopkg/opkg_install.c

index 4560dc9e5a523e0942dabc7cff69c8b5efd7349b..fabd520c781cef19afbf6cf183741818d3e59f5f 100644 (file)
@@ -34,6 +34,8 @@
 
 #include <libbb/libbb.h>
 
 
 #include <libbb/libbb.h>
 
+struct errlist* error_list;
+
 struct _opkg_t
 {
   args_t *args;
 struct _opkg_t
 {
   args_t *args;
index 94dbdeaa99edb00ea70ad39a263ac7d398542919..a99da374834731c4df29fc51bfff9cdb35a4ba7c 100644 (file)
@@ -51,6 +51,6 @@ struct errlist {
     struct errlist * next;
 } ;
 
     struct errlist * next;
 } ;
 
-struct errlist* error_list;
+extern struct errlist* error_list;
 
 #endif /* OPKG_ERROR_H */
 
 #endif /* OPKG_ERROR_H */
index 47554d0fe0b02a503c7ed9dbac3e9af55f37cf3b..370410a6604b116b3a583df6975a677df11b2883 100644 (file)
@@ -21,7 +21,9 @@
 #include <glob.h>
 #include <time.h>
 #include <signal.h>
 #include <glob.h>
 #include <time.h>
 #include <signal.h>
+#ifndef __USE_GNU
 typedef void (*sighandler_t)(int);
 typedef void (*sighandler_t)(int);
+#endif
 
 #include "pkg.h"
 #include "pkg_hash.h"
 
 #include "pkg.h"
 #include "pkg_hash.h"