Re: [AD] Re: linux compile fix

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


Evert Glebbeek wrote:
On Sunday 26 March 2006 23:30, Milan Mimica wrote:
It's not much about console. Is there a way to figure out whether we are building on linux? ALLEGRO_LINUX is not it. Any non-existent autoconf experts around? :-)

From source code? #ifdef __linux__ should do.

OK, attached a patch that fixes compiling on linux with linux console support disabled.



--
Milan Mimica
http://sparklet.sf.net
Index: src/i386/opcodes.h
===================================================================
--- src/i386/opcodes.h	(revision 5789)
+++ src/i386/opcodes.h	(working copy)
@@ -24,7 +24,7 @@
  * defined.  So it's okay, for now, if code conditional to
  * USE_MMAP_GEN_CODE_BUF uses a Linux-specific feature.
  */
-#ifdef ALLEGRO_LINUX 
+#ifdef __linux__ 
    #define USE_MMAP_GEN_CODE_BUF
    #define __USE_GNU     /* for mremap */
    #include <stdlib.h>   /* for mkstemp */


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