Package: xgalaga
Severity: normal
Tags: patch

When building 'xgalaga' on amd64 with gcc-4.0,
I get the following error:

gcc -I. -I.. -O3 -g  -DHAVE_CONFIG_H   -c -o data.o data.c
In file included from data.c:19:
data.h:69: error: array type has incomplete element type
data.h:72: error: array type has incomplete element type
make[2]: *** [data.o] Error 1
make[2]: Leaving directory `/xgalaga-2.0.34/libsprite'

With the attached patch 'xgalaga' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/xgalaga-2.0.34/data.h ./data.h
--- ../tmp-orig/xgalaga-2.0.34/data.h   2005-03-19 11:09:23.159659483 +0100
+++ ./data.h    2005-03-19 11:08:48.649752504 +0100
@@ -1,4 +1,5 @@
 #include "Wlib.h"
+#include "struct.h"
 
 extern W_Window gal, shellWin, baseWin;
 
diff -urN ../tmp-orig/xgalaga-2.0.34/libsprite/data.h ./libsprite/data.h
--- ../tmp-orig/xgalaga-2.0.34/libsprite/data.h 2005-03-19 11:09:23.151660896 
+0100
+++ ./libsprite/data.h  2005-03-19 11:08:32.005689476 +0100
@@ -20,6 +20,7 @@
 
 #include "Wlib.h"
 #include "defs.h"
+#include "struct.h"
 
 extern int     nplanes;
 extern int     xpmORplanes ;
diff -urN ../tmp-orig/xgalaga-2.0.34/struct.h ./struct.h
--- ../tmp-orig/xgalaga-2.0.34/struct.h 2005-03-19 11:09:23.161659130 +0100
+++ ./struct.h  2005-03-19 10:58:34.860297032 +0100
@@ -1,3 +1,6 @@
+#ifndef STRUCT_H
+#define STRUCT_H
+
 #include "Wlib.h"
 
 struct torp {
@@ -43,3 +46,5 @@
     signed short but;
     signed long dir;
 };
+
+#endif


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to