Skip to content

Commit

Permalink
install: use included vasprintf for AIX
Browse files Browse the repository at this point in the history
fixes #1908
  • Loading branch information
flavorjones committed Feb 15, 2020
1 parent cc48052 commit 49ebc7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def openbsd?
RbConfig::CONFIG['target_os'] =~ /openbsd/
end

def aix?
RbConfig::CONFIG["target_os"] =~ /aix/
end

def nix?
! (windows? || solaris? || darwin?)
end
Expand Down Expand Up @@ -419,7 +423,7 @@ def using_system_libraries?
$CFLAGS << " -DXP_WIN -DXP_WIN32 -DUSE_INCLUDED_VASPRINTF"
end

if solaris?
if solaris? || aix?
$CFLAGS << " -DUSE_INCLUDED_VASPRINTF"
end

Expand Down

0 comments on commit 49ebc7c

Please sign in to comment.