summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/socket/extconf.rb6
-rw-r--r--version.h2
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e69e15bc96..e718720666 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jun 26 16:10:01 2013 Eric Hodel <drbrain@segment7.net>
+
+ * ext/socket/extconf.rb: Enable RFC 3542 IPV6 socket options for OS X
+ 10.7+. [ruby-trunk - Bug #8517]
+
Tue Jun 25 21:54:17 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* gc.c: Fixup around GC by MALLOC.
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 380b3ecde0..5c29876a4b 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -24,6 +24,12 @@ else
have_library("socket", "socket")
end
+if /darwin/ =~ RUBY_PLATFORM
+ # For IPv6 extension header access on OS X 10.7+ [Bug #8517]
+ $CFLAGS << " -D__APPLE_USE_RFC_3542"
+end
+
+headers = []
unless $mswin or $bccwin or $mingw
headers = %w<sys/types.h netdb.h string.h sys/socket.h netinet/in.h>
end
diff --git a/version.h b/version.h
index b8ed6bfdb5..66cde47e6b 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 435
+#define RUBY_PATCHLEVEL 436
#define RUBY_RELEASE_DATE "2013-06-26"
#define RUBY_RELEASE_YEAR 2013