ports/www/mod_dnssd/files/patch-src__mod_dnssd.c
Kurt Jaeger 651c415d78 www/mod_dnssd: fix build with apache22
Requested by:	Wolfgang Riegler <wolfgang.riegler@gmx.de>
Submitted by:	olli hauer <ohauer@gmx.de>
2016-01-26 19:59:29 +00:00

19 lines
460 B
C

--- src/mod_dnssd.c.orig 2009-01-28 02:24:00 UTC
+++ src/mod_dnssd.c
@@ -24,9 +24,16 @@
#include <ap_config.h>
#include <apr_strings.h>
#include <unixd.h>
+#if MODULE_MAGIC_COOKIE >= 0x41503234UL /* "AP24" */
+#include <mod_unixd.h>
+#endif
#include <apr_signal.h>
#include <mpm_common.h>
+#if MODULE_MAGIC_NUMBER_MAJOR >= 20090130
+#define unixd_setup_child ap_unixd_setup_child
+#endif
+
#include <unistd.h>
#include <avahi-common/simple-watch.h>