Skip to content

Commit

Permalink
yaws: fix MacOS references.
Browse files Browse the repository at this point in the history
Needed after Homebrew/brew#16306.
  • Loading branch information
MikeMcQuaid committed Dec 14, 2023
1 parent 0342b54 commit c060d1d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Formula/y/yaws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ class Yaws < Formula
skip_clean "lib/yaws/examples/include"

def install
# Ensure pam headers are found on Xcode-only installs
extra_args = %W[
--with-extrainclude=#{MacOS.sdk_path}/usr/include/security
]
if OS.linux?
extra_args = %W[
extra_args = if OS.mac?
# Ensure pam headers are found on Xcode-only installs
%W[
--with-extrainclude=#{MacOS.sdk_path}/usr/include/security
]
else
%W[
--with-extrainclude=#{Formula["linux-pam"].opt_include}/security
]
end
Expand Down

0 comments on commit c060d1d

Please sign in to comment.