We override exit() throughout the httpd build in order to intercept and
report our status through the service control manager.
We must include process.h prior to overriding exit().
I seem to remember that this is the reason apr.hw once included
process.h unilaterally, to avoid this conflict over exit.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1129878 13f79535-47bb-0310-9956-
ffa450edef68
*/
#include "apr.h"
+
+#if APR_HAVE_PROCESS_H
+#include <process.h> /* for getpid() on Win32 */
+#endif
+
#include "apr_strings.h"
#include "apr_buckets.h"
#include "apr_lib.h"
#if APR_HAVE_UNISTD_H
#include <unistd.h>
#endif
-#if APR_HAVE_PROCESS_H
-#include <process.h> /* for getpid() on Win32 */
-#endif
APLOG_USE_MODULE(http);
#ifdef WIN32
+#include "apr.h"
+#include <process.h>
#include "httpd.h"
#include "http_main.h"
#include "http_log.h"
#include "apr_buckets.h"
#include "scoreboard.h"
-#include <process.h>
-
#ifdef __MINGW32__
#include <mswsock.h>
#endif