Skip to content

Commit e343347

Browse files
committed
mod_systemd: Axe APR_OPTIONAL_FN redeclarations to avoid compiler warning.
ap_find_systemd_socket() and ap_systemd_listen_fds() are already declared in "ap_listen.h", so just include them. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916312 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2f598dc commit e343347

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

modules/arch/unix/mod_systemd.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <stdint.h>
1919
#include <ap_config.h>
2020
#include "ap_mpm.h"
21+
#include "ap_listen.h"
2122
#include <http_core.h>
2223
#include <httpd.h>
2324
#include <http_log.h>
@@ -34,12 +35,6 @@
3435
#include <unistd.h>
3536
#endif
3637

37-
APR_DECLARE_OPTIONAL_FN(int,
38-
ap_find_systemd_socket, (process_rec *, apr_port_t));
39-
40-
APR_DECLARE_OPTIONAL_FN(int,
41-
ap_systemd_listen_fds, (int));
42-
4338
static int systemd_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
4439
apr_pool_t *ptemp)
4540
{

0 commit comments

Comments
 (0)