[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: [AD] linux compile fix
- From: Milan Mimica <milan.mimica@xxxxxxxxxx>
- Date: Thu, 23 Mar 2006 21:20:52 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type; b=KVjSkpX1jHxJ3D5C51xuBUhlC/v5gKu5fcAotia9lCVsG5scOAtnpOcv1sf19PmOlupg3xdtAQRw9QKKVTKtDUxCmyAWTrpDTouwenHXp9/8MGGEuaoEDV9iP3vhlp+DyKSsPwB+3W74ltbBTkurHNpK7JBR4VHYEXa39gsSRq0=
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 */