httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r479799 - /httpd/httpd/trunk/modules/experimental/mod_example.c
Date Mon, 27 Nov 2006 23:11:43 GMT
Author: bnicholes
Date: Mon Nov 27 15:11:42 2006
New Revision: 479799

URL: http://svn.apache.org/viewvc?view=rev&rev=479799
Log:
ifdef out suexec for the platforms that don't support it

Modified:
    httpd/httpd/trunk/modules/experimental/mod_example.c

Modified: httpd/httpd/trunk/modules/experimental/mod_example.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/experimental/mod_example.c?view=diff&rev=479799&r1=479798&r2=479799
==============================================================================
--- httpd/httpd/trunk/modules/experimental/mod_example.c (original)
+++ httpd/httpd/trunk/modules/experimental/mod_example.c Mon Nov 27 15:11:42 2006
@@ -44,7 +44,9 @@
 #include "http_request.h"
 #include "util_script.h"
 #include "http_connection.h"
+#ifdef HAVE_UNIX_SUEXEC
 #include "unixd.h"
+#endif
 #include "scoreboard.h"
 
 #include "apr_strings.h"
@@ -1314,6 +1316,8 @@
     return DECLINED;
 }
 
+#ifdef HAVE_UNIX_SUEXEC
+
 /*
  * This routine is called to find out under which user id to run suexec
  * Unless our module runs CGI programs, there is no reason for us to 
@@ -1330,6 +1334,7 @@
     
     return NULL;
 }
+#endif
 
 /*
  * This routine is called to create a connection. This hook is implemented
@@ -1464,7 +1469,9 @@
     ap_hook_auth_checker(x_auth_checker, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_insert_filter(x_insert_filter, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_insert_error_filter(x_insert_error_filter, NULL, NULL, APR_HOOK_MIDDLE);
+#ifdef HAVE_UNIX_SUEXEC
     ap_hook_get_suexec_identity(x_get_suexec_identity, NULL, NULL, APR_HOOK_MIDDLE);
+#endif
     ap_hook_create_connection(x_create_connection, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_get_mgmt_items(x_get_mgmt_items, NULL, NULL, APR_HOOK_MIDDLE);
     ap_hook_create_request(x_create_request, NULL, NULL, APR_HOOK_MIDDLE);



Mime
View raw message