Created
July 26, 2011 09:02
-
-
Save tetsu-koba/1106326 to your computer and use it in GitHub Desktop.
Android patch for ruby-1.8.7-p352.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u -r ruby-1.8.7-p352/configure ruby-1.8.7-p352.android/configure | |
--- ruby-1.8.7-p352/configure 2011-07-02 18:54:02.000000000 +0900 | |
+++ ruby-1.8.7-p352.android/configure 2011-07-26 16:22:06.762897834 +0900 | |
@@ -9043,7 +9043,9 @@ | |
$as_echo_n "(cached) " >&6 | |
else | |
if test "$cross_compiling" = yes; then : | |
- as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5 | |
+ #as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5 | |
+ # hack for Android | |
+ ac_cv_func_setpgrp_void=yes | |
else | |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
/* end confdefs.h. */ | |
@@ -10286,7 +10288,9 @@ | |
rb_cv_dlopen=yes ;; | |
os2-emx*) LDFLAGS="$LDFLAGS -Zbsd-signals" | |
;; | |
- *) : ${LDSHARED='ld'} ;; | |
+# *) : ${LDSHARED='ld'} ;; | |
+ *) : ${LDSHARED="$CC -shared"} ;; | |
+ | |
esac | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dlopen" >&5 | |
$as_echo "$rb_cv_dlopen" >&6; } | |
diff -u -r ruby-1.8.7-p352/defines.h ruby-1.8.7-p352.android/defines.h | |
--- ruby-1.8.7-p352/defines.h 2008-05-19 00:02:36.000000000 +0900 | |
+++ ruby-1.8.7-p352.android/defines.h 2011-07-26 16:52:43.192633611 +0900 | |
@@ -193,6 +193,10 @@ | |
#if defined(__BEOS__) | |
#include <net/socket.h> /* intern.h needs fd_set definition */ | |
#endif | |
+#if defined(__ANDROID__) | |
+#include <sys/select.h> /* intern.h needs fd_set definition */ | |
+#define CharNext(p) ((p) + 1) | |
+#endif | |
#ifdef RUBY_EXPORT | |
#undef RUBY_EXTERN | |
Only in ruby-1.8.7-p352.android/ext/win32ole: .document |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment