socket.rb - don't load io/wait (#6922)

See d2166c09b08fc1 and #6036 for more context.
This commit is contained in:
MSP-Greg 2022-12-13 13:57:38 -06:00 committed by GitHub
parent 1859784422
commit 74995162fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2022-12-13 19:57:57 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'socket.so'
require 'io/wait'
require 'io/wait' unless ::IO.public_instance_methods(false).include? :wait_readable
class Addrinfo
# creates an Addrinfo object from the arguments.