[AD] linux compile fix

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Allegro 4.2 SVN fails to compile on linux. It complains about PAGE_SIZE, perror and mprotect in src/i386/icsprite.c. Patch attached.


--
Milan Mimica
http://sparklet.sf.net
Index: src/i386/icsprite.c
===================================================================
--- src/i386/icsprite.c	(revision 5763)
+++ src/i386/icsprite.c	(working copy)
@@ -24,6 +24,10 @@
 
 #ifdef ALLEGRO_WINDOWS
    #include "winalleg.h"   /* For VirtualProtect */
+#elif defined(HAVE_MPROTECT)
+   #include <sys/mman.h>
+   #include <asm/page.h>
+   #include <stdio.h>
 #endif     /* ifdef ALLEGRO_WINDOWS */
 
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/