* modules/generators/cgi_common.h: Only define CGI bucket type
if WANT_CGI_BUCKET is defined.
* modules/generators/mod_cgi.c: Always include cgi_common.h, defining
WANT_CGI_BUCKET iff APR_FILES_AS_SOCKETS is defined
* modules/generators/mod_cgid.c: Always include cgi_common.h, defining
WANT_CGI_BUCKET iff HAVE_CGID_FDPASSING (--enable-cgid-fdpassing).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1867971 13f79535-47bb-0310-9956-
ffa450edef68
}
}
+#ifdef WANT_CGI_BUCKET
/* A CGI bucket type is needed to catch any output to stderr from the
* script; see PR 22030. */
static const apr_bucket_type_t bucket_type_cgi;
apr_bucket_copy_notimpl
};
+#endif /* WANT_CGI_BUCKET */
+
/* Handle the CGI response output, having set up the brigade with the
* CGI or PIPE bucket as appropriate. */
static int cgi_handle_response(request_rec *r, int nph, apr_bucket_brigade *bb,
}
#if APR_FILES_AS_SOCKETS
-#include "cgi_common.h"
+#define WANT_CGI_BUCKET
#endif
+#include "cgi_common.h"
static int cgi_handler(request_rec *r)
{
return ret;
}
-#ifdef HAVE_CGID_FDPASSING
/* Pull in CGI bucket implementation. */
#define cgi_server_conf cgid_server_conf
-#include "cgi_common.h"
+#ifdef HAVE_CGID_FDPASSING
+#define WANT_CGI_BUCKET
#endif
+#include "cgi_common.h"
static int connect_to_daemon(int *sdptr, request_rec *r,
cgid_server_conf *conf)