aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-tcp-stream-ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-tcp-stream-ssl.h')
-rw-r--r--camel/camel-tcp-stream-ssl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/camel/camel-tcp-stream-ssl.h b/camel/camel-tcp-stream-ssl.h
index de6eb1a8bc..ef4e21126c 100644
--- a/camel/camel-tcp-stream-ssl.h
+++ b/camel/camel-tcp-stream-ssl.h
@@ -30,17 +30,19 @@ extern "C" {
#pragma }
#endif /* __cplusplus */
+#include <config.h>
+
+#ifdef HAVE_NSS
#include <camel/camel-tcp-stream.h>
#include <camel/camel-session.h>
-#include <nspr.h>
+#include <mozilla/nspr.h>
#define CAMEL_TCP_STREAM_SSL_TYPE (camel_tcp_stream_ssl_get_type ())
#define CAMEL_TCP_STREAM_SSL(obj) (CAMEL_CHECK_CAST((obj), CAMEL_TCP_STREAM_SSL_TYPE, CamelTcpStreamSSL))
#define CAMEL_TCP_STREAM_SSL_CLASS(k) (CAMEL_CHECK_CLASS_CAST ((k), CAMEL_TCP_STREAM_SSL_TYPE, CamelTcpStreamSSLClass))
#define CAMEL_IS_TCP_STREAM_SSL(o) (CAMEL_CHECK_TYPE((o), CAMEL_TCP_STREAM_SSL_TYPE))
-struct _CamelTcpStreamSSL
-{
+struct _CamelTcpStreamSSL {
CamelTcpStream parent_object;
PRFileDesc *sockfd;
@@ -62,6 +64,8 @@ CamelType camel_tcp_stream_ssl_get_type (void);
/* public methods */
CamelStream *camel_tcp_stream_ssl_new (CamelSession *session, const char *expected_host);
+#endif /* HAVE_NSS */
+
#ifdef __cplusplus
}
#endif /* __cplusplus */