summaryrefslogtreecommitdiff
path: root/threadproc/os2
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2014-01-18 13:40:24 +0000
committerJeff Trawick <trawick@apache.org>2014-01-18 13:40:24 +0000
commit885e5359bf60d7bdc061d94d817e73f2df0014fb (patch)
tree0f1da1740b5ddc2dd45536977f957f7582c6faf3 /threadproc/os2
parent12799133a8830f567ef7d0a45c0b61806eae1ea8 (diff)
downloadapr-885e5359bf60d7bdc061d94d817e73f2df0014fb.tar.gz
stop using deprecated versions of APR_FOPEN_* and APR_FPROT_*
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1559343 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r--threadproc/os2/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/threadproc/os2/proc.c b/threadproc/os2/proc.c
index 7047401b1..cd7500129 100644
--- a/threadproc/os2/proc.c
+++ b/threadproc/os2/proc.c
@@ -380,7 +380,8 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *proc, const char *progname
strcpy(interpreter, "#!" SHELL_PATH);
extra_arg = "/C";
} else if (stricmp(extension, ".exe") != 0) {
- status = apr_file_open(&progfile, progname, APR_READ|APR_BUFFERED, 0, pool);
+ status = apr_file_open(&progfile, progname,
+ APR_FOPEN_READ|APR_FOPEN_BUFFERED, 0, pool);
if (status != APR_SUCCESS && APR_STATUS_IS_ENOENT(status)) {
progname = apr_pstrcat(pool, progname, ".exe", NULL);