From 5ce532d819575aab670a336cb7fd60fb9e717af9 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 2 Mar 2009 12:14:35 +0000 Subject: * ext/socket/ancdata.c (rsock_discard_cmsg_resource): defined unconditionally. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/socket/test_socket.rb | 1 + test/socket/test_unix.rb | 1 + 2 files changed, 2 insertions(+) (limited to 'test') diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index d6a70dd40..fe6ea1f5f 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -312,6 +312,7 @@ class TestSocket < Test::Unit::TestCase def test_timestamp return if /linux|freebsd|netbsd|openbsd|solaris|darwin/ !~ RUBY_PLATFORM + return if !defined?(Socket::AncillaryData) t1 = Time.now.strftime("%Y-%m-%d") stamp = nil Addrinfo.udp("127.0.0.1", 0).bind {|s1| diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index e75d7b6f9..fdf0ce72e 100644 --- a/test/socket/test_unix.rb +++ b/test/socket/test_unix.rb @@ -69,6 +69,7 @@ class TestSocket_UNIXSocket < Test::Unit::TestCase def test_fd_passing_n2 io_ary = [] return if !defined?(Socket::SCM_RIGHTS) + return if !defined?(Socket::AncillaryData) io_ary.concat IO.pipe io_ary.concat IO.pipe io_ary.concat IO.pipe -- cgit