Changeset: 58debc5f5128 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/58debc5f5128
Modified Files:
clients/examples/C/streamcat.c
clients/mapiclient/mclient.c
Branch: default
Log Message:
Some curl libs don't seem to have CURL_WRITEFUNC_ERROR.
diffs (28 lines):
diff --git a/clients/examples/C/streamcat.c b/clients/examples/C/streamcat.c
--- a/clients/examples/C/streamcat.c
+++ b/clients/examples/C/streamcat.c
@@ -439,6 +439,10 @@ opener_rastream(char *filename)
#ifdef HAVE_CURL
#include <curl/curl.h>
+#ifndef CURL_WRITEFUNC_ERROR
+#define CURL_WRITEFUNC_ERROR 0
+#endif
+
static size_t
write_callback(char *buffer, size_t size, size_t nitems, void *userp)
{
diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -3075,6 +3075,10 @@ doFile(Mapi mid, stream *fp, bool useins
#ifdef HAVE_CURL
#include <curl/curl.h>
+#ifndef CURL_WRITEFUNC_ERROR
+#define CURL_WRITEFUNC_ERROR 0
+#endif
+
static size_t
write_callback(char *buffer, size_t size, size_t nitems, void *userp)
{
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]