packages/lang/ruby/patches/001-ignore_wide_getaddrinfo_while_crosscompiling.patch
hauke 7aa10a3e3d ruby: fix unresolved getaddrinfo #9873 and update to 1.9.3p545
ruby fails to check wide_getaddrinfo, which is important only for
non-linux env.

Luiz Angelo Daros de Luca <luizluca@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@40630 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-01 15:28:46 +00:00

11 lines
370 B
Diff

--- a/ext/socket/extconf.rb 2013-02-14 23:20:13.581918676 -0200
+++ b/ext/socket/extconf.rb 2013-02-14 23:21:25.761918667 -0200
@@ -254,6 +254,7 @@
end
getaddr_info_ok = (enable_config("wide-getaddrinfo") && :wide) ||
+ (CROSS_COMPILING && :cross) ||
(checking_for("wide getaddrinfo") {try_run(<<EOF)} && :os)
#{cpp_include(headers)}
#include <stdlib.h>