]> granicus.if.org Git - apache/blobdiff - os/bs2000/os.c
*) Compensate for recent changes in the APR headers. Specifically, some
[apache] / os / bs2000 / os.c
index 591d96414c564f9450c088c7515fede93fd45429..088230b68bf884ab26c6ba50d25d59988e159d00 100644 (file)
@@ -64,6 +64,7 @@
 #include "httpd.h"
 #include "http_core.h"
 #include "os.h"
+#include "httpd.h"
 
 /* Check the Content-Type to decide if conversion is needed */
 int ap_checkconv(struct request_rec *r)
@@ -89,7 +90,7 @@ int ap_checkconv(struct request_rec *r)
                 strncasecmp(type, "message/", 8) == 0)) {
        if (strncasecmp(type, ASCIITEXT_MAGIC_TYPE_PREFIX,
                        sizeof(ASCIITEXT_MAGIC_TYPE_PREFIX)-1) == 0)
-           r->content_type = ap_pstrcat(r->pool, "text/",
+           r->content_type = apr_pstrcat(r->pool, "text/",
                                         type+sizeof(ASCIITEXT_MAGIC_TYPE_PREFIX)-1,
                                         NULL);
         else
@@ -102,3 +103,13 @@ int ap_checkconv(struct request_rec *r)
     return convert_to_ascii;
 }
 
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
+{
+    return apr_create_process(newproc, progname, args, env, attr, p);
+}
+