[PATCH] winelib: test against __linux__ define instead of just linux

Yann Droneaud yann at droneaud.fr
Mon Oct 26 09:36:20 CDT 2009


In C99 mode, GCC don't define "linux".
But other form of define is available.

---
 libs/wine/ldt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/wine/ldt.c b/libs/wine/ldt.c
index 7475d51..685ed6a 100644
--- a/libs/wine/ldt.c
+++ b/libs/wine/ldt.c
@@ -35,7 +35,7 @@
 
 #ifdef __i386__
 
-#ifdef linux
+#ifdef __linux__
 
 #ifdef HAVE_SYS_SYSCALL_H
 # include <sys/syscall.h>
-- 
1.6.2.5




More information about the wine-patches mailing list