aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-04-23 11:01:30 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-04-23 11:01:30 +0200
commit0204e17bc656e6c59b4010283e67f9251eb12c41 (patch)
treefa0f3f3b49701b8f008f93adeb05e526e323d5a1 /lib/vtls
parentf4ec8ffee2a0d4414fb5f5c596ec9b2ea2533140 (diff)
cyassl: Use error-ssl.h when available
Versions since at least 2.9.4 renamed error.h to error-ssl.h, so use whichever one is available.
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/cyassl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c
index 6f1cea233..cf93e0ede 100644
--- a/lib/vtls/cyassl.c
+++ b/lib/vtls/cyassl.c
@@ -47,11 +47,16 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#include "curl_memory.h"
-/* The last #include file should be: */
-#include "memdebug.h"
+
#include <cyassl/ssl.h>
+#ifdef HAVE_CYASSL_ERROR_SSL_H
+#include <cyassl/error-ssl.h>
+#else
#include <cyassl/error.h>
+#endif
+/* The last #include file should be: */
+#include "memdebug.h"
static Curl_recv cyassl_recv;
static Curl_send cyassl_send;