From cba0e7a71cc760df718388815f76935bdb92c78e Mon Sep 17 00:00:00 2001 From: bnicholes Date: Mon, 14 Jan 2002 22:33:21 +0000 Subject: dup2() appears to be broken. Sticking with dup() until we can fix it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62789 13f79535-47bb-0310-9956-ffa450edef68 --- file_io/unix/filedup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'file_io') diff --git a/file_io/unix/filedup.c b/file_io/unix/filedup.c index f61245176..7cda84fd3 100644 --- a/file_io/unix/filedup.c +++ b/file_io/unix/filedup.c @@ -141,6 +141,10 @@ APR_DECLARE(apr_status_t) apr_file_dup(apr_file_t **new_file, APR_DECLARE(apr_status_t) apr_file_dup2(apr_file_t **new_file, apr_file_t *old_file, apr_pool_t *p) { +#ifdef NETWARE + return _file_dup(new_file, old_file, p, 1); +#else return _file_dup(new_file, old_file, p, 2); +#endif } -- cgit v1.2.1