aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-02-03 03:29:21 +0000
committerChristian Grothoff <christian@grothoff.org>2009-02-03 03:29:21 +0000
commit6dbe4da5ed780b52914315945c6c73fa694d9d48 (patch)
treef629fa2e2194f241582b7637f15e8c9fd16bb802
parentba527500553f0ee6d9b903f3469b4130db142524 (diff)
downloadlibmicrohttpd-6dbe4da5ed780b52914315945c6c73fa694d9d48.tar.gz
libmicrohttpd-6dbe4da5ed780b52914315945c6c73fa694d9d48.zip
zos fixes
-rw-r--r--configure.ac8
-rw-r--r--src/daemon/daemon.c2
-rw-r--r--src/daemon/internal.h4
-rw-r--r--src/include/microhttpd.h8
-rw-r--r--src/include/platform.h1
5 files changed, 13 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 416efbef..1712a724 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,16 +37,16 @@ AC_SUBST(LIB_VERSION_AGE)
37if test `uname -s` = "OS/390" 37if test `uname -s` = "OS/390"
38then 38then
39# configure binaries for z/OS 39# configure binaries for z/OS
40 if test -z $CC 40 if test -z "$CC"
41 then 41 then
42 CC=`pwd`"/contrib/xcc" 42 CC=`pwd`"/contrib/xcc"
43 chmod +x $CC || true 43 chmod +x $CC || true
44 fi 44 fi
45 if test -z $CPP 45 if test -z "$CPP"
46 then 46 then
47 CPP="c89 -E" 47 CPP="c89 -E"
48 fi 48 fi
49 if test -z $CXXCPP 49 if test -z "$CXXCPP"
50 then 50 then
51 CXXCPP="c++ -E -+" 51 CXXCPP="c++ -E -+"
52 fi 52 fi
@@ -143,7 +143,7 @@ AC_SUBST(PTHREAD_CPPFLAGS)
143AC_CHECK_HEADERS([fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h],,AC_MSG_ERROR([Compiling libmicrohttpd requires standard UNIX headers files])) 143AC_CHECK_HEADERS([fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h],,AC_MSG_ERROR([Compiling libmicrohttpd requires standard UNIX headers files]))
144 144
145# Check for optional headers 145# Check for optional headers
146AC_CHECK_HEADERS([sys/select.h sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h]) 146AC_CHECK_HEADERS([sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h])
147 147
148AC_CHECK_FUNCS(memmem) 148AC_CHECK_FUNCS(memmem)
149 149
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
608typedef 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>