summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2002-01-08 06:33:00 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2002-01-08 06:33:00 +0000
commit3ab96f459dea1fcdbfd7ba88f49e430cebeb9c77 (patch)
treeafe352111596b41be208f848780e2f5ad003e788 /file_io
parentf7e7a3dd159b48be44b4f6b52b78b7bf8f173728 (diff)
downloadlibapr-3ab96f459dea1fcdbfd7ba88f49e430cebeb9c77.tar.gz
Fix a compile break that I just committed. Having multiple OSes is a good
thing. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/unix/mktemp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/file_io/unix/mktemp.c b/file_io/unix/mktemp.c
index aa87c3293..2ca90d2d5 100644
--- a/file_io/unix/mktemp.c
+++ b/file_io/unix/mktemp.c
@@ -203,11 +203,13 @@ static int gettemp(char *path, apr_file_t **doopen, apr_int32_t flags, apr_pool_
APR_DECLARE(apr_status_t) apr_file_mktemp(apr_file_t **fp, char *template, apr_int32_t flags, apr_pool_t *p)
{
+#ifdef HAVE_MKSTEMP
+ int fd;
+#endif
flags = (!flags) ? APR_READ | APR_WRITE | APR_EXCL | APR_DELONCLOSE : flags;
#ifndef HAVE_MKSTEMP
return gettemp(template, fp, flags, p);
#else
- int fd;
fd = mkstemp(template);
if (fd == -1) {