diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/daemon.c | 2 | ||||
-rw-r--r-- | src/daemon/internal.h | 4 | ||||
-rw-r--r-- | src/include/microhttpd.h | 8 | ||||
-rw-r--r-- | src/include/platform.h | 1 |
4 files changed, 9 insertions, 6 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index d29ce4aa..cf4d192e 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -882,7 +882,7 @@ MHD_start_daemon_va (unsigned int options, | |||
882 | break; | 882 | break; |
883 | case MHD_OPTION_URI_LOG_CALLBACK: | 883 | case MHD_OPTION_URI_LOG_CALLBACK: |
884 | retVal->uri_log_callback = | 884 | retVal->uri_log_callback = |
885 | va_arg (ap, void *(*)(void *cls, const char *uri)); | 885 | va_arg (ap, LogCallback); |
886 | retVal->uri_log_callback_cls = va_arg (ap, void *); | 886 | retVal->uri_log_callback_cls = va_arg (ap, void *); |
887 | break; | 887 | break; |
888 | #if HTTPS_SUPPORT | 888 | #if HTTPS_SUPPORT |
diff --git a/src/daemon/internal.h b/src/daemon/internal.h index 5fa38984..969117fc 100644 --- a/src/daemon/internal.h +++ b/src/daemon/internal.h | |||
@@ -605,6 +605,8 @@ struct MHD_Connection | |||
605 | #endif | 605 | #endif |
606 | }; | 606 | }; |
607 | 607 | ||
608 | typedef void * (*LogCallback)(void * cls, const char * uri); | ||
609 | |||
608 | /** | 610 | /** |
609 | * State kept for each MHD daemon. | 611 | * State kept for each MHD daemon. |
610 | */ | 612 | */ |
@@ -656,7 +658,7 @@ struct MHD_Daemon | |||
656 | * Returns the initial pointer to internal state | 658 | * Returns the initial pointer to internal state |
657 | * kept by the client for the request. | 659 | * kept by the client for the request. |
658 | */ | 660 | */ |
659 | void *(*uri_log_callback) (void *cls, const char *uri); | 661 | LogCallback uri_log_callback; |
660 | 662 | ||
661 | /** | 663 | /** |
662 | * Closure argument to uri_log_callback. | 664 | * Closure argument to uri_log_callback. |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 8b7960ea..29f73a36 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -424,7 +424,7 @@ enum MHD_OPTION | |||
424 | * if it was compiled without the "--enable-messages" | 424 | * if it was compiled without the "--enable-messages" |
425 | * flag being set. | 425 | * flag being set. |
426 | */ | 426 | */ |
427 | MHD_OPTION_EXTERNAL_LOGGER = 13, | 427 | MHD_OPTION_EXTERNAL_LOGGER = 13 |
428 | 428 | ||
429 | }; | 429 | }; |
430 | 430 | ||
@@ -502,7 +502,7 @@ enum MHD_RequestTerminationCode | |||
502 | * We had to close the session since MHD was being | 502 | * We had to close the session since MHD was being |
503 | * shut down. | 503 | * shut down. |
504 | */ | 504 | */ |
505 | MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3, | 505 | MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3 |
506 | 506 | ||
507 | }; | 507 | }; |
508 | 508 | ||
@@ -518,7 +518,7 @@ enum MHD_GNUTLS_CipherAlgorithm | |||
518 | MHD_GNUTLS_CIPHER_ARCFOUR_128, | 518 | MHD_GNUTLS_CIPHER_ARCFOUR_128, |
519 | MHD_GNUTLS_CIPHER_3DES_CBC, | 519 | MHD_GNUTLS_CIPHER_3DES_CBC, |
520 | MHD_GNUTLS_CIPHER_AES_128_CBC, | 520 | MHD_GNUTLS_CIPHER_AES_128_CBC, |
521 | MHD_GNUTLS_CIPHER_AES_256_CBC, | 521 | MHD_GNUTLS_CIPHER_AES_256_CBC |
522 | }; | 522 | }; |
523 | 523 | ||
524 | /** | 524 | /** |
@@ -552,7 +552,7 @@ enum MHD_ConnectionInfoType | |||
552 | * | 552 | * |
553 | * Takes no extra arguments. | 553 | * Takes no extra arguments. |
554 | */ | 554 | */ |
555 | MHD_CONNECTION_INFO_PROTOCOL, | 555 | MHD_CONNECTION_INFO_PROTOCOL |
556 | }; | 556 | }; |
557 | 557 | ||
558 | /** | 558 | /** |
diff --git a/src/include/platform.h b/src/include/platform.h index 857a0c10..1252487b 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #define _OPEN_THREADS | 41 | #define _OPEN_THREADS |
42 | #define _OPEN_SYS_SOCK_IPV6 | 42 | #define _OPEN_SYS_SOCK_IPV6 |
43 | #define _OPEN_MSGQ_EXT | 43 | #define _OPEN_MSGQ_EXT |
44 | #define _LP64 | ||
44 | #endif | 45 | #endif |
45 | 46 | ||
46 | #include <stdio.h> | 47 | #include <stdio.h> |