]> granicus.if.org Git - apache/commitdiff
mpm_fdqueue: follow up to r1821624.
authorYann Ylavic <ylavic@apache.org>
Fri, 19 Jan 2018 12:07:23 +0000 (12:07 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 19 Jan 2018 12:07:23 +0000 (12:07 +0000)
And now it's mpm_fdqueue, with minimal #includes.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821625 13f79535-47bb-0310-9956-ffa450edef68

server/Makefile.in
server/mpm_fdqueue.c
server/mpm_fdqueue.h

index 57422e9f6f722ba7c74fcdc47c5bc13e16dd239c..46fbd54d1d96ddaa1ff8245e47a2a06535254680 100644 (file)
@@ -9,7 +9,8 @@ LTLIBRARY_NAME    = libmain.la
 LTLIBRARY_SOURCES = \
        config.c log.c main.c vhost.c util.c util_fcgi.c \
        util_script.c util_md5.c util_cfgtree.c util_ebcdic.c util_time.c \
-       connection.c listen.c util_mutex.c mpm_common.c mpm_unix.c \
+       connection.c listen.c util_mutex.c \
+       mpm_common.c mpm_unix.c mpm_fdqueue.c \
        util_charset.c util_cookies.c util_debug.c util_xml.c \
        util_filter.c util_pcre.c util_regex.c exports.c \
        scoreboard.c error_bucket.c protocol.c core.c request.c provider.c \
index 5b0192b2ee648be44259410518124393c8b6c210..6e843a6ef874e880fb66e0c704776da5602413ba 100644 (file)
@@ -14,8 +14,9 @@
  * limitations under the License.
  */
 
-#include "fdqueue.h"
-#include "apr_atomic.h"
+#include "mpm_fdqueue.h"
+
+#include <apr_atomic.h>
 
 static const apr_uint32_t zero_pt = APR_UINT32_MAX/2;
 
index df54217387566e826f37dd0f97d1faee6dc70e50..2c6f9266e1576cc341fe8d465064cd2e79892ac3 100644 (file)
  */
 
 /**
- * @file  event/fdqueue.h
+ * @file  server/mpm_fdqueue.h
  * @brief fd queue declarations
  *
  * @addtogroup APACHE_MPM_EVENT
  * @{
  */
 
-#ifndef FDQUEUE_H
-#define FDQUEUE_H
-#include "httpd.h"
-#include <stdlib.h>
-#if APR_HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <apr_thread_mutex.h>
-#include <apr_thread_cond.h>
-#include <sys/types.h>
-#if APR_HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#include <apr_errno.h>
+#ifndef MPM_FDQUEUE_H
+#define MPM_FDQUEUE_H
+
+#include <apr.h>
+
+/* Not worth thinking about w/o threads... */
+#if APR_HAS_THREADS
 
 #include "ap_mpm.h"
 
+#include <apr_ring.h>
+#include <apr_pools.h>
+#include <apr_network_io.h>
+#include <apr_thread_mutex.h>
+#include <apr_thread_cond.h>
+
 typedef struct fd_queue_info_t fd_queue_info_t;
 typedef struct event_conn_state_t event_conn_state_t;
 
@@ -104,5 +103,7 @@ apr_status_t ap_queue_interrupt_all(fd_queue_t * queue);
 apr_status_t ap_queue_interrupt_one(fd_queue_t * queue);
 apr_status_t ap_queue_term(fd_queue_t * queue);
 
-#endif /* FDQUEUE_H */
+#endif /* APR_HAS_THREADS */
+
+#endif /* MPM_FDQUEUE_H */
 /** @} */