liblo: moved to github
[openwrt.org/packages.git] / lang / 001-ignore_wide_getaddrinfo_while_crosscompiling.patch
1
2
3
4
5
6
7
8
9
10
11
--- 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>
 
comments