diff --git a/Formula/nghttp2.rb b/Formula/nghttp2.rb index 0fa90228c4c3..ef94e6e3b74b 100644 --- a/Formula/nghttp2.rb +++ b/Formula/nghttp2.rb @@ -30,6 +30,16 @@ class Nghttp2 < Formula uses_from_macos "libxml2" uses_from_macos "zlib" + on_linux do + # Fix: shrpx_api_downstream_connection.cc:57:3: error: + # array must be initialized with a brace-enclosed initializer + # https://github.com/nghttp2/nghttp2/pull/1269 + patch do + url "https://github.com/nghttp2/nghttp2/commit/829258e7038fe7eff849677f1ccaeca3e704eb67.patch?full_index=1" + sha256 "c4bcf5cf73d5305fc479206676027533bb06d4ff2840eb672f6265ba3239031e" + end + end + def install # fix for clang not following C++14 behaviour # https://github.com/macports/macports-ports/commit/54d83cca9fc0f2ed6d3f873282b6dd3198635891