Re: [AD] Re: linux compile fix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] Re: linux compile fix
- From: Milan Mimica <milan.mimica@xxxxxxxxxx>
- Date: Sat, 29 Apr 2006 01:14:58 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:mime-version:to:subject:references:in-reply-to:content-type:from; b=a6d26udkegdcOc3vkVuGwyXvbDupRT4DjToYJy41AA8hc9RnFLhFG8JiLiRtaWjlZSOyfOKFWoUaPj8Vt95LYXcBxeuCttkQoH0s0qlcrF7DE0UD4w3NKiM3BMC1lFPLYUMUS/X2xZsxJc/gTRilIHdQmWVuHWVS+4E0a6H7xlo=
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 */