Skip to content

Commit

Permalink
Use etc instead of .so for broader compatibility
Browse files Browse the repository at this point in the history
The use of `etc.so` here requires that etc is always implemented
as a C extension on-disk. However at least one impl – JRuby –
currently implements it as an internal extension, loaded via a
Ruby script. This require should simply use the base name of the
library, `etc`, to allow Ruby-based implementations to load as
well.
  • Loading branch information
headius committed Sep 28, 2021
1 parent 157b11e commit 2061f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def pretty_print(q) # :nodoc:
class File < IO # :nodoc:
class Stat # :nodoc:
def pretty_print(q) # :nodoc:
require 'etc.so'
require 'etc'
q.object_group(self) {
q.breakable
q.text sprintf("dev=0x%x", self.dev); q.comma_breakable
Expand Down

0 comments on commit 2061f99

Please sign in to comment.