Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Unified Diff: net/tools/quic/quic_socket_utils.cc

Issue 994193002: Compile quic_server on MacOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undefine __APPLE_USE_RFC_n after use Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_socket_utils.cc
diff --git a/net/tools/quic/quic_socket_utils.cc b/net/tools/quic/quic_socket_utils.cc
index ad059cd4c67e6731ec2b37058a41c31e7d7ccec0..408d7c12c56a91e995f6dd57189b4e6093970188 100644
--- a/net/tools/quic/quic_socket_utils.cc
+++ b/net/tools/quic/quic_socket_utils.cc
@@ -5,7 +5,15 @@
#include "net/tools/quic/quic_socket_utils.h"
#include <errno.h>
+// Apple's "in6.h" header file says:
+// * RFC 3542 define[s] the following socket options in a manner incompatible
+// * with RFC 2292:
+// * IPV6_PKTINFO
+// and in order to get IPV6_PKTINFO defined at all,
+// you must pick a mode, as follows:
+#define __APPLE_USE_RFC_3542
#include <netinet/in.h>
+#undef __APPLE_USE_RFC_3542
#include <sys/socket.h>
#include <sys/uio.h>
#include <string>
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698