File fix-build.patch of Package luola

diff --git a/src/pilot.c b/src/pilot.c
index c68ed3e..267c64b 100644
--- a/src/pilot.c
+++ b/src/pilot.c
@@ -46,6 +46,8 @@
 /* List of active pilots */
 struct dllist *pilot_list;
 
+struct Pilot Pilot;
+
 /* Internally used globals */
 static SDL_Surface *pilot_sprite[4][3];        /* Normal,Normal2, Parachute */
 
diff --git a/src/pilot.h b/src/pilot.h
index 33d729e..aa5214b 100644
--- a/src/pilot.h
+++ b/src/pilot.h
@@ -45,7 +45,9 @@ struct Pilot {
     int toofast;                /* How long has the pilot been falling too fast */
     struct Spring *rope;        /* The ninjarope */
     int ropectrl;               /* -1 retracts rope, 1 extends it */
-} Pilot;
+};
+
+extern struct Pilot Pilot;
 
 /* Rope length limits. Actual rope length is nodelen*nodecount */
 static const double pilot_rope_minlen = 0.1;
diff --git a/tools/im_vwing.c b/tools/im_vwing.c
index a6ce42d..62eedb0 100644
--- a/tools/im_vwing.c
+++ b/tools/im_vwing.c
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <limits.h>
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 
 #include "im_vwing.h"
openSUSE Build Service is sponsored by