Make googlelog build with Xcode 9+
Summary: Xcode 9+ breaks googlelog
Test Plan: Ran a build of //kythe/release on my mac. Will test on linux tomorrow.
Reviewers: shahms
Subscribers: #core_team
Maniphest Tasks: T245
@@ -36,6 +36,8 @@ cc_library(
":headers",
],
copts = [
+ # Needed for Xcode 9.0+. It doesn't affect Linux builds. See D2013.
+ "-D_DARWIN_C_SOURCE",
"-D_XOPEN_SOURCE",
"-Ithird_party/googlelog/src",
],
