From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Wed, 16 Nov 2022 08:32:17 -0500
Subject: Fix test failures related to Module:PTY

Removing this snippet of code fixes some a handful of mri:stdlib testsuite
failures, however I'm not entirely sure what exactly is going on here.

Forwarded: not-needed
---
 lib/ruby/stdlib/pty.rb | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lib/ruby/stdlib/pty.rb b/lib/ruby/stdlib/pty.rb
index c2df4b4..cbc7b93 100644
--- a/lib/ruby/stdlib/pty.rb
+++ b/lib/ruby/stdlib/pty.rb
@@ -5,10 +5,6 @@ module PTY
   module LibUtil
     extend FFI::Library
     ffi_lib FFI::Library::LIBC
-    # openpty(3) is in libutil on linux and BSD, libc on MacOS
-    if FFI::Platform.linux? || (FFI::Platform.bsd? && !FFI::Platform.mac?)
-      ffi_lib 'libutil'
-    end
     attach_function :openpty, [ :buffer_out, :buffer_out, :buffer_in, :buffer_in, :buffer_in ], :int
   end
 
