bf2d49e
--- mod_dnssd-0.6/src/mod_dnssd.c.httpd24
bf2d49e
+++ mod_dnssd-0.6/src/mod_dnssd.c
bf2d49e
@@ -26,6 +26,9 @@
bf2d49e
 #include <unixd.h>
bf2d49e
 #include <apr_signal.h>
bf2d49e
 #include <mpm_common.h>
bf2d49e
+#if AP_MODULE_MAGIC_AT_LEAST(20090130,0)
bf2d49e
+#include <mod_unixd.h>
bf2d49e
+#endif
bf2d49e
 
bf2d49e
 #include <unistd.h>
bf2d49e
 
bf2d49e
@@ -576,7 +579,11 @@ static void child_process(apr_pool_t *p,
bf2d49e
 
bf2d49e
     ap_assert(d);
bf2d49e
 
bf2d49e
+#if AP_MODULE_MAGIC_AT_LEAST(20090130,0)
bf2d49e
+    ap_unixd_setup_child();
bf2d49e
+#else
bf2d49e
     unixd_setup_child();
bf2d49e
+#endif
bf2d49e
 
bf2d49e
     if (pipe(sigterm_pipe_fds) < 0) {
bf2d49e
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, r.main_server, "pipe() failed: %s", strerror(errno));