[PATCH xserver] autoconfig: replace undefined __hurd__ with __GNU__

Gaetan Nadon memsize at videotron.ca
Wed Oct 27 16:27:22 PDT 2010


OS related files in the server use the correct __GNU__ define.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 hw/xfree86/common/xf86AutoConfig.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
index 200cb8f..68615a0 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -260,7 +260,7 @@ listPossibleVideoDrivers(char *matches[], int nmatches)
 
     /* Fallback to platform default hardware */
     if (i < (nmatches - 1)) {
-#if defined(__i386__) || defined(__amd64__) || defined(__hurd__)
+#if defined(__i386__) || defined(__amd64__) || defined(__GNU__)
 	matches[i++] = xnfstrdup("vesa");
 #elif defined(__sparc__) && !defined(sun)
 	matches[i++] = xnfstrdup("sunffb");
-- 
1.6.0.4



More information about the xorg-devel mailing list