From 613418cb9cb7982b45a6b3b41eb8efdc6eafd868 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <komh@chollian.net>
Date: Sat, 12 Mar 2011 11:16:23 +0900
Subject: [PATCH 10/41] Disable check_OS_capability() on OS/2

---
 src/misc/cpu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 63a4bd2..22005c1 100644
--- a/src/misc/cpu.c
+++ b/src/misc/cpu.c
@@ -53,7 +53,7 @@ static uint32_t cpu_flags;

 #if defined( __i386__ ) || defined( __x86_64__ ) || defined( __powerpc__ ) \
  || defined( __ppc__ ) || defined( __ppc64__ ) || defined( __powerpc64__ )
-# ifndef WIN32
+# if !defined( WIN32 ) && !defined( __OS2__ )
 static bool check_OS_capability( const char *psz_capability, pid_t pid )
 {
     int status;
@@ -86,7 +86,7 @@ static bool check_OS_capability( const char *psz_capability, pid_t pid )
             i_capabilities |= (flag);                   \
      } while(0)

-# else /* WIN32 */
+# else /* WIN32 || __OS2__ */
 #  define check_capability(name, flag, code, input)   \
         i_capabilities |= (flag);
 # endif
--
1.7.3.2

