OSDN Git Service

Add bionic libc's case
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Sun, 28 Apr 2013 03:57:47 +0000 (12:57 +0900)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Sun, 28 Apr 2013 03:57:47 +0000 (12:57 +0900)
bionic doesn't have locale.
https://android.googlesource.com/platform/bionic/+/android-4.2.2_r1.2/libc/README
https://bugs.ruby-lang.org/issues/8338

nkf.h

diff --git a/nkf.h b/nkf.h
index cbe5f56..af44320 100755 (executable)
--- a/nkf.h
+++ b/nkf.h
@@ -152,6 +152,7 @@ void  setbinmode(FILE *fp)
 # ifndef HAVE_LOCALE_H
 #  define HAVE_LOCALE_H
 # endif
+#elif defined(__BIONIC__) /* bionic doesn't have locale */
 #else
 # ifndef HAVE_LANGINFO_H
 #  define HAVE_LANGINFO_H