summaryrefslogtreecommitdiffstats
path: root/test/socket/test_socket.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_socket.rb')
-rw-r--r--test/socket/test_socket.rb1
1 files changed, 1 insertions, 0 deletions
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|