[SDL] Compilation on unix systems without X-Windows (PATCH)

Jess JessH at lbjhs.net
Sat Apr 22 02:06:17 PDT 2000

SDL doesnt compile on unix systems that dont have X(such as my laptop),
this fixes it, and should do it beter than my last patch (both work just
as well, this way is just a little beter in my opinion)


-------------- next part --------------
diff -urN SDL-1.1/include/SDL_syswm.h SDL-1.1.new/include/SDL_syswm.h
--- SDL-1.1/include/SDL_syswm.h Thu Mar 16 09:20:37 2000
+++ SDL-1.1.new/include/SDL_syswm.h     Wed Apr 12 09:08:33 2000
@@ -49,7 +49,7 @@

 /* This is the structure for custom window manager events */
-#if defined(unix) || defined(__unix__) || defined(_AIX)
+#if defined(ENABLE_X11)
  /* AIX is unix, of course, but the native compiler CSet doesn't define unix */
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>

More information about the SDL mailing list