You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rainer Jung <ra...@kippdata.de> on 2009/01/02 15:04:39 UTC
Missing include in simple_run.c
When compiling trunk, I get
simple_run.c:242: warning: implicit declaration of function
'ap_run_drop_privileges'
I can fix it with the following patch:
Index: server/mpm/simple/simple_run.c
===================================================================
--- server/mpm/simple/simple_run.c (revision 730683)
+++ server/mpm/simple/simple_run.c (working copy)
@@ -28,6 +28,7 @@
#include "ap_listen.h"
#include "mpm.h"
+#include "mpm_common.h"
/**
* Create Timers.
I'm not sure though, whether that's the best way, or you want to move
the symbol to another include file instead.
Regards,
Rainer
Re: Missing include in simple_run.c
Posted by Ruediger Pluem <rp...@apache.org>.
On 01/02/2009 03:04 PM, Rainer Jung wrote:
> When compiling trunk, I get
>
> simple_run.c:242: warning: implicit declaration of function
> 'ap_run_drop_privileges'
>
> I can fix it with the following patch:
>
> Index: server/mpm/simple/simple_run.c
> ===================================================================
> --- server/mpm/simple/simple_run.c (revision 730683)
> +++ server/mpm/simple/simple_run.c (working copy)
> @@ -28,6 +28,7 @@
>
> #include "ap_listen.h"
> #include "mpm.h"
> +#include "mpm_common.h"
>
> /**
> * Create Timers.
>
> I'm not sure though, whether that's the best way, or you want to move
> the symbol to another include file instead.
+1, go for it and patch it. The other MPM's include it as well and use
it from there.
Regards
RĂ¼diger