Re: [AD] More "mprotect" troubles (4.2.1 showstopper?)

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


On 2006-03-18, Peter Wang <tjaden@xxxxxxxxxx> wrote:
> 
> Never mind, I found it :)  I have attached an updated patch but not
> really tested it yet.

And the attached patch is required for Windows.

Peter
diff -u src/i386/icsprite.c src/i386/icsprite.c
--- src/i386/icsprite.c	(local)
+++ src/i386/icsprite.c	(local)
@@ -22,6 +22,10 @@
 #include "allegro/internal/aintern.h"
 #include "opcodes.h"
 
+#ifdef ALLEGRO_WINDOWS
+   #include "winalleg.h"   /* For VirtualProtect */
+#endif     /* ifdef ALLEGRO_WINDOWS */
+
 
 
 /* compile_sprite:


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