summaryrefslogtreecommitdiff
path: root/lib/vauth/oauth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vauth/oauth2.c')
-rw-r--r--lib/vauth/oauth2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/vauth/oauth2.c b/lib/vauth/oauth2.c
index bedc6e3e6..b4e9f8e70 100644
--- a/lib/vauth/oauth2.c
+++ b/lib/vauth/oauth2.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -24,6 +24,9 @@
#include "curl_setup.h"
+#if !defined(CURL_DISABLE_IMAP) || !defined(CURL_DISABLE_SMTP) || \
+ !defined(CURL_DISABLE_POP3)
+
#include <curl/curl.h>
#include "urldata.h"
@@ -119,3 +122,5 @@ CURLcode Curl_auth_create_xoauth_bearer_message(struct Curl_easy *data,
return result;
}
+#endif /* disabled, no users */
+