summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_gssapi_posix.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 22:20:48 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 22:20:48 +0000
commit4abf5b4c8ed2e74163475a59296e8ba87c98717a (patch)
tree3eaf1d1fd1bfe24221d2c5b76a2101cae6497922 /net/http/http_auth_gssapi_posix.h
parentf619247664f8e0e496ce1fe0086fa9f4bcbe39a7 (diff)
downloadchromium_src-4abf5b4c8ed2e74163475a59296e8ba87c98717a.zip
chromium_src-4abf5b4c8ed2e74163475a59296e8ba87c98717a.tar.gz
chromium_src-4abf5b4c8ed2e74163475a59296e8ba87c98717a.tar.bz2
mac: Let net/ compile with the 10.9 sdk (while targeting 10.6).
No intended behavior change. BUG=249803 Review URL: https://chromiumcodereview.appspot.com/17274012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_gssapi_posix.h')
-rw-r--r--net/http/http_auth_gssapi_posix.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/net/http/http_auth_gssapi_posix.h b/net/http/http_auth_gssapi_posix.h
index 44b99bc..afa50a0 100644
--- a/net/http/http_auth_gssapi_posix.h
+++ b/net/http/http_auth_gssapi_posix.h
@@ -5,8 +5,6 @@
#ifndef NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
#define NET_HTTP_HTTP_AUTH_GSSAPI_POSIX_H_
-#include <gssapi.h>
-
#include <string>
#include "base/gtest_prod_util.h"
@@ -14,6 +12,14 @@
#include "net/base/net_export.h"
#include "net/http/http_auth.h"
+#if defined(OS_MACOSX) && defined(MAC_OS_X_VERSION_10_9) && \
+ MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
+// Including gssapi.h directly is deprecated in the 10.9 SDK.
+#include <GSS/gssapi.h>
+#else
+#include <gssapi.h>
+#endif
+
namespace net {
// Mechanism OID for GSSAPI. We always use SPNEGO.