exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit cd4616dc34d186db07ff0cdd115e694dda02405f
parent 44ddaaca7fb1f16c804d31d5414960a07900d087
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 11 Nov 2016 15:46:04 +0100

-only enable developer logic if MHD is recent enough

Diffstat:
Mconfigure.ac | 2++
Msrc/exchange/taler-exchange-httpd.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -362,6 +362,8 @@ AC_MSG_RESULT($enable_developer) AM_CONDITIONAL([HAVE_DEVELOPER], [test "x$enable_developer" = "xyes"]) enable_dev=1 AS_IF([test "x$enableval" = "xno"], [enable_dev=0]) +# developer-logic requires a more recent MHD than usual. +AC_CHECK_DECL([MHD_OPTION_NOTIFY_CONNECTION],,[enable_dev=0],[[#include <microhttpd.h>]]) AC_DEFINE_UNQUOTED([HAVE_DEVELOPER],[$enable_dev],[1 if developer logic is enabled, 0 otherwise]) diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c @@ -691,6 +691,7 @@ exchange_serve_process_config () /* Developer logic for supporting the `-f' option. */ #if HAVE_DEVELOPER + /** * Option `-f' (specifies an input file to give to the HTTP server). */ @@ -797,7 +798,6 @@ connection_done (void *cls, /* end of HAVE_DEVELOPER */ #endif - /** * Function called for logging by MHD. *