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

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: 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
« net/tools/quic/quic_client.cc ('K') | « 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 3cd12ed9549e8a338568363207e87b6112eca125..31078bb413c54efcd862305dd2af91594eff051a 100644
--- a/net/tools/quic/quic_socket_utils.cc
+++ b/net/tools/quic/quic_socket_utils.cc
@@ -5,6 +5,13 @@
#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
Ryan Hamilton 2015/03/12 03:34:38 Should this be wrapped in an #if apple_or_darwin_o
dougk 2015/03/12 12:39:10 Personally I find it less ugly not to add preamble
Ryan Hamilton 2015/03/12 17:55:41 I'm happy with adding a #undef but leaving off an
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/uio.h>
« net/tools/quic/quic_client.cc ('K') | « net/tools/quic/quic_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698