Browse Source

Make sure android includes the right headers for System.cpp too

Hopefully.
Bart van Strien 9 years ago
parent
commit
2af327dcf9
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/modules/system/System.cpp

+ 5 - 5
src/modules/system/System.cpp

@@ -26,20 +26,20 @@
 #include <CoreServices/CoreServices.h>
 #include <CoreServices/CoreServices.h>
 #elif defined(LOVE_IOS)
 #elif defined(LOVE_IOS)
 #include "common/ios.h"
 #include "common/ios.h"
-#elif defined(LOVE_ANDROID)
-#include "common/android.h"
-#elif defined(LOVE_LINUX)
+#elif defined(LOVE_LINUX) || defined(LOVE_ANDROID)
 #include <spawn.h>
 #include <spawn.h>
-//#include <stdlib.h>
-//#include <unistd.h>
 #include <signal.h>
 #include <signal.h>
 #include <sys/wait.h>
 #include <sys/wait.h>
+#include <errno.h>
 #elif defined(LOVE_WINDOWS)
 #elif defined(LOVE_WINDOWS)
 #include "common/utf8.h"
 #include "common/utf8.h"
 #include <shlobj.h>
 #include <shlobj.h>
 #include <shellapi.h>
 #include <shellapi.h>
 #pragma comment(lib, "shell32.lib")
 #pragma comment(lib, "shell32.lib")
 #endif
 #endif
+#if defined(LOVE_ANDROID)
+#include "common/android.h"
+#endif
 
 
 #if defined(LOVE_LINUX)
 #if defined(LOVE_LINUX)
 static void sigchld_handler(int sig)
 static void sigchld_handler(int sig)