summaryrefslogtreecommitdiffstats
path: root/modules/lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/mod_lua.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c
index a7795c4749..2790a47cc5 100644
--- a/modules/lua/mod_lua.c
+++ b/modules/lua/mod_lua.c
@@ -15,37 +15,36 @@
* limitations under the License.
*/
-#include "mod_lua.h"
+#include "apr_thread_mutex.h"
+#include "apr_pools.h"
+#include "apr_optional.h"
+
+/* getpid for *NIX vs Windows */
+#if APR_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if APR_HAVE_PROCESS_H
+#include <process.h>
+#endif
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
-#include <apr_thread_mutex.h>
-#include <apr_pools.h>
+
+#include "mod_lua.h"
#include "lua_apr.h"
#include "lua_config.h"
-#include "apr_optional.h"
#include "mod_ssl.h"
#include "mod_auth.h"
#include "util_mutex.h"
-
#ifdef APR_HAS_THREADS
#include "apr_thread_proc.h"
#endif
-/* getpid for *NIX */
-#if APR_HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#if APR_HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-/* getpid for Windows */
-#if APR_HAVE_PROCESS_H
-#include <process.h>
-#endif
-
APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(ap_lua, AP_LUA, int, lua_open,
(lua_State *L, apr_pool_t *p),
(L, p), OK, DECLINED)