bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [PATCH 3/8] build: Do not include os2compat.[ch]


From: KO Myung-Hun
Subject: [bug-gettext] [PATCH 3/8] build: Do not include os2compat.[ch]
Date: Sun, 8 Nov 2015 14:57:59 +0900

kLIBC does not need os2compat.[ch]

* gettext-runtime/configure.ac (AH_BOTTOM): Do not include
intl/os2compat.h on kLIBC.
* gettext-runtime/intl/osdep.c: Do not include os2compat.c on kLIBC.
* gettext-tools/configure.ac (AH_BOTTOM): Do not include
intl/os2compat.h on kLIBC.
---
 gettext-runtime/configure.ac | 2 +-
 gettext-runtime/intl/osdep.c | 2 +-
 gettext-tools/configure.ac   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac
index e9299b6..77e954b 100644
--- a/gettext-runtime/configure.ac
+++ b/gettext-runtime/configure.ac
@@ -102,7 +102,7 @@ AH_BOTTOM([
 #endif
 
 /* Extra OS/2 (emx+gcc) defines.  */
-#ifdef __EMX__
+#if defined __EMX__ && !defined __KLIBC__
 # include "intl/os2compat.h"
 #endif
 ])
diff --git a/gettext-runtime/intl/osdep.c b/gettext-runtime/intl/osdep.c
index 25f8dfa..eda9d28 100644
--- a/gettext-runtime/intl/osdep.c
+++ b/gettext-runtime/intl/osdep.c
@@ -16,7 +16,7 @@
 
 #if defined __CYGWIN__ || defined __MINGW32__
 # include "intl-exports.c"
-#elif defined __EMX__
+#elif defined __EMX__ && !defined __KLIBC__
 # include "os2compat.c"
 #else
 /* Avoid AIX compiler warning.  */
diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac
index 920eeb6..e2598eb 100644
--- a/gettext-tools/configure.ac
+++ b/gettext-tools/configure.ac
@@ -286,7 +286,7 @@ AH_BOTTOM([
 #endif
 
 /* Extra OS/2 (emx+gcc) defines.  */
-#ifdef __EMX__
+#if defined __EMX__ && !defined __KLIBC__
 # include "intl/os2compat.h"
 #endif
 ])
-- 
2.6.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]