From 3ccfdac3ab38813e13f1e248aafd0072372a1785 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Tue, 22 Aug 2017 20:32:39 +0200 Subject: [PATCH] midnight-commander: fix compilation on 10.13 --- Formula/midnight-commander.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/midnight-commander.rb b/Formula/midnight-commander.rb index f4bf83b682..65caf1f6fe 100644 --- a/Formula/midnight-commander.rb +++ b/Formula/midnight-commander.rb @@ -33,6 +33,10 @@ class MidnightCommander < Formula --enable-vfs-sftp ] + # Fix compilation bug on macOS 10.13 by pretending we don't have utimensat() + # https://github.com/MidnightCommander/mc/pull/130 + ENV["ac_cv_func_utimensat"] = "no" if MacOS.version >= :high_sierra + args << "--disable-nls" if build.without? "nls" system "./configure", *args