aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-27 01:09:19 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-27 01:09:19 +0200
commit9201af1f487ce8eb190d1d9d9f191b38a9d74ed5 (patch)
tree79f5767b2bb2a173cd56538f0e96482a33ac0d33
parentf56b3e8619aafe36f6aea1e71a2c61bbf7fa699d (diff)
compat with older MHD versions
-rw-r--r--configure.ac1
-rw-r--r--src/include/taler_util.h9
2 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 77bee8b73..9e5717c87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -231,7 +231,6 @@ AS_IF([test "x$curl" = x1],[
[curl=0])
])
-
# libcurl should be mutually exclusive
AS_IF([test "$curl" = 1],
AM_CONDITIONAL(HAVE_LIBCURL, true)
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index f2121f9cb..a74aaa771 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -32,11 +32,18 @@
#include "taler_amount_lib.h"
#include "taler_crypto_lib.h"
+#if MHD_VERSION < 0x00097701
+#define MHD_create_response_from_buffer_static (s,b) \
+ MHD_create_response_from_buffer (s, \
+ (const char *) b, \
+ MHD_RESPMEM_PERSISTENT)
+#endif
+
/**
* Version of the Taler API, in hex.
* Thus 0.8.4-1 = 0x00080401.
*/
-#define TALER_API_VERSION 0x00090401
+#define TALER_API_VERSION 0x000D0000
/**
* Stringify operator.