aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am3
-rw-r--r--src/lib/daemon_poll.c4
-rw-r--r--src/lib/daemon_poll.h2
-rw-r--r--src/lib/daemon_select.c4
-rw-r--r--src/lib/daemon_select.h2
-rw-r--r--src/lib/internal.h4
-rw-r--r--src/lib/response_for_upgrade.c4
7 files changed, 15 insertions, 8 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ef8ee966..b8fc5f2e 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -55,3 +55,6 @@ uninstall-local:
55 echo " rm -f '$(DESTDIR)$(infodir)/libmicrohttpd_performance_data.png'"; \ 55 echo " rm -f '$(DESTDIR)$(infodir)/libmicrohttpd_performance_data.png'"; \
56 rm -f "$(DESTDIR)$(infodir)/libmicrohttpd_performance_data.png" \ 56 rm -f "$(DESTDIR)$(infodir)/libmicrohttpd_performance_data.png" \
57 else : ; fi 57 else : ; fi
58
59# end of 'if BUILD_DOC'
60
diff --git a/src/lib/daemon_poll.c b/src/lib/daemon_poll.c
index 1afd93be..c9743543 100644
--- a/src/lib/daemon_poll.c
+++ b/src/lib/daemon_poll.c
@@ -315,7 +315,7 @@ MHD_daemon_poll_all_ (struct MHD_Daemon *daemon,
315 (p[poll_server+i+1].fd != urh->mhd.socket)) 315 (p[poll_server+i+1].fd != urh->mhd.socket))
316 break; 316 break;
317 urh_from_pollfd (urh, 317 urh_from_pollfd (urh,
318 &(p[poll_server+i])); 318 &p[poll_server+i]);
319 i += 2; 319 i += 2;
320 MHD_upgrade_response_handle_process_ (urh); 320 MHD_upgrade_response_handle_process_ (urh);
321 /* Finished forwarding? */ 321 /* Finished forwarding? */
@@ -457,6 +457,7 @@ MHD_daemon_poll_ (struct MHD_Daemon *daemon,
457} 457}
458 458
459 459
460#ifdef HAVE_POLL
460#ifdef HTTPS_SUPPORT 461#ifdef HTTPS_SUPPORT
461/** 462/**
462 * Process upgraded connection with a poll() loop. 463 * Process upgraded connection with a poll() loop.
@@ -514,5 +515,6 @@ MHD_daemon_upgrade_connection_with_poll_ (struct MHD_Connection *con)
514 } 515 }
515} 516}
516#endif 517#endif
518#endif
517 519
518/* end of daemon_poll.c */ 520/* end of daemon_poll.c */
diff --git a/src/lib/daemon_poll.h b/src/lib/daemon_poll.h
index 8295cc56..fc5663b0 100644
--- a/src/lib/daemon_poll.h
+++ b/src/lib/daemon_poll.h
@@ -69,6 +69,7 @@ MHD_daemon_poll_ (struct MHD_Daemon *daemon,
69 69
70 70
71#ifdef HTTPS_SUPPORT 71#ifdef HTTPS_SUPPORT
72#ifdef HAVE_POLL
72/** 73/**
73 * Process upgraded connection with a poll() loop. 74 * Process upgraded connection with a poll() loop.
74 * We are in our own thread, only processing @a con 75 * We are in our own thread, only processing @a con
@@ -79,5 +80,6 @@ void
79MHD_daemon_upgrade_connection_with_poll_ (struct MHD_Connection *con) 80MHD_daemon_upgrade_connection_with_poll_ (struct MHD_Connection *con)
80 MHD_NONNULL(1); 81 MHD_NONNULL(1);
81#endif 82#endif
83#endif
82 84
83#endif 85#endif
diff --git a/src/lib/daemon_select.c b/src/lib/daemon_select.c
index 17cefceb..764f8008 100644
--- a/src/lib/daemon_select.c
+++ b/src/lib/daemon_select.c
@@ -350,7 +350,7 @@ MHD_daemon_get_fdset2 (struct MHD_Daemon *daemon,
350} 350}
351 351
352 352
353#ifdef HTTPS_SUPPORT 353#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
354/** 354/**
355 * Update the @a urh based on the ready FDs in 355 * Update the @a urh based on the ready FDs in
356 * the @a rs, @a ws, and @a es. 356 * the @a rs, @a ws, and @a es.
@@ -487,7 +487,7 @@ internal_run_from_select (struct MHD_Daemon *daemon,
487} 487}
488 488
489 489
490#ifdef HTTPS_SUPPORT 490#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
491/** 491/**
492 * Process upgraded connection with a select loop. 492 * Process upgraded connection with a select loop.
493 * We are in our own thread, only processing @a con 493 * We are in our own thread, only processing @a con
diff --git a/src/lib/daemon_select.h b/src/lib/daemon_select.h
index ec1c5770..d6e9e106 100644
--- a/src/lib/daemon_select.h
+++ b/src/lib/daemon_select.h
@@ -40,7 +40,7 @@ MHD_daemon_select_ (struct MHD_Daemon *daemon,
40 MHD_NONNULL(1); 40 MHD_NONNULL(1);
41 41
42 42
43#ifdef HTTPS_SUPPORT 43#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
44/** 44/**
45 * Process upgraded connection with a select loop. 45 * Process upgraded connection with a select loop.
46 * We are in our own thread, only processing @a con 46 * We are in our own thread, only processing @a con
diff --git a/src/lib/internal.h b/src/lib/internal.h
index 17c38249..4e8a1470 100644
--- a/src/lib/internal.h
+++ b/src/lib/internal.h
@@ -578,7 +578,6 @@ struct MHD_Request
578}; 578};
579 579
580 580
581#ifdef EPOLL_SUPPORT
582/** 581/**
583 * State of the socket with respect to epoll (bitmask). 582 * State of the socket with respect to epoll (bitmask).
584 */ 583 */
@@ -623,7 +622,6 @@ enum MHD_EpollState
623 */ 622 */
624 MHD_EPOLL_STATE_ERROR = 128 623 MHD_EPOLL_STATE_ERROR = 128
625}; 624};
626#endif
627 625
628 626
629/** 627/**
@@ -836,12 +834,10 @@ struct UpgradeEpollHandle
836 */ 834 */
837 MHD_socket socket; 835 MHD_socket socket;
838 836
839#ifdef EPOLL_SUPPORT
840 /** 837 /**
841 * IO-state of the @e socket (or the connection's `socket_fd`). 838 * IO-state of the @e socket (or the connection's `socket_fd`).
842 */ 839 */
843 enum MHD_EpollState celi; 840 enum MHD_EpollState celi;
844#endif
845 841
846}; 842};
847 843
diff --git a/src/lib/response_for_upgrade.c b/src/lib/response_for_upgrade.c
index 5de6518b..0d843b8e 100644
--- a/src/lib/response_for_upgrade.c
+++ b/src/lib/response_for_upgrade.c
@@ -59,6 +59,7 @@ struct MHD_Response *
59MHD_response_for_upgrade (MHD_UpgradeHandler upgrade_handler, 59MHD_response_for_upgrade (MHD_UpgradeHandler upgrade_handler,
60 void *upgrade_handler_cls) 60 void *upgrade_handler_cls)
61{ 61{
62#ifdef UPGRADE_SUPPORT
62 struct MHD_Response *response; 63 struct MHD_Response *response;
63 64
64 mhd_assert (NULL != upgrade_handler); 65 mhd_assert (NULL != upgrade_handler);
@@ -85,6 +86,9 @@ MHD_response_for_upgrade (MHD_UpgradeHandler upgrade_handler,
85 return NULL; 86 return NULL;
86 } 87 }
87 return response; 88 return response;
89#else
90 return NULL;
91#endif
88} 92}
89 93
90/* end of response_for_upgrade.c */ 94/* end of response_for_upgrade.c */