<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/34841ed3f3b1cdc677faa9f3edf2c00eab7320f6">https://github.com/macports/macports-ports/commit/34841ed3f3b1cdc677faa9f3edf2c00eab7320f6</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 34841ed3f3b1cdc677faa9f3edf2c00eab7320f6
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Nov 18 08:15:44 2019 +1100
<span style='display:block; white-space:pre;color:#404040;'> grpc: add extra includes for if_nametoindex
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/59713
</span>---
devel/grpc/Portfile | 3 ++-
devel/grpc/files/grpc_if_nametoindex_posix.cc.diff | 14 ++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/grpc/Portfile b/devel/grpc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9a07b53..8199e23 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/grpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/grpc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,7 +29,8 @@ checksums rmd160 d1a5675ca59564385e93cbadabd159b508a9be99 \
</span>
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-Makefile.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ grpc_if_nametoindex_posix.cc.diff
</span>
depends_lib-append \
port:zlib \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/grpc/files/grpc_if_nametoindex_posix.cc.diff b/devel/grpc/files/grpc_if_nametoindex_posix.cc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..13c2150
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/grpc/files/grpc_if_nametoindex_posix.cc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Older versions of OS X require including some more headers before using
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if_nametoindex, as documented in its man page.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/core/lib/iomgr/grpc_if_nametoindex_posix.cc.orig 2019-07-03 04:44:40.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/core/lib/iomgr/grpc_if_nametoindex_posix.cc 2019-11-18 07:47:39.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,6 +25,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "src/core/lib/iomgr/grpc_if_nametoindex.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <errno.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/socket.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <net/if.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <grpc/support/log.h>
</span></pre><pre style='margin:0'>
</pre>