Re: [AD] Allegro 4.2.1 stress test |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Elias Pschernig wrote:
Both BSDs report the same compile error, I'll try to investigate.
The attached patch should fix it. I wonder if istretch.c will pass.
--
Milan Mimica
http://sparklet.sf.net
Index: src/i386/icsprite.c
===================================================================
--- src/i386/icsprite.c (revision 7505)
+++ src/i386/icsprite.c (working copy)
@@ -27,7 +27,17 @@
#endif /* ifdef ALLEGRO_WINDOWS */
+#ifdef HAVE_MPROTECT
+ #include <sys/types.h>
+ #include <sys/mman.h>
+ #include <sys/user.h>
+ #include <limits.h> /* for PAGESIZE */
+ #ifndef PAGESIZE
+ #define PAGESIZE 4096
+ #endif
+#endif /* ifdef HAVE_MPROTECT */
+
/* compile_sprite:
* Helper function for making compiled sprites.
*/