summaryrefslogtreecommitdiff
path: root/misc/unix
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2007-03-09 17:09:02 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2007-03-09 17:09:02 +0000
commit3597da3715d99f029de9eaf718d5d3c130815024 (patch)
treea73168c4f885ce327f100b72439ce0b5f0029fd1 /misc/unix
parentb1f5207b1cdd2850a1087789553bcf60a777ed37 (diff)
downloadlibapr-3597da3715d99f029de9eaf718d5d3c130815024.tar.gz
fix build failure on platforms without setenv()
Submitted by: Stefan Ruppert <ml ruppert-it.de> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@516466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc/unix')
-rw-r--r--misc/unix/env.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/unix/env.c b/misc/unix/env.c
index 526115fda..b41f8f17b 100644
--- a/misc/unix/env.c
+++ b/misc/unix/env.c
@@ -19,6 +19,7 @@
#include "apr.h"
#include "apr_private.h"
#include "apr_env.h"
+#include "apr_strings.h"
#if APR_HAVE_UNISTD_H
#include <unistd.h>
@@ -57,7 +58,7 @@ APR_DECLARE(apr_status_t) apr_env_set(const char *envvar,
#elif defined(HAVE_PUTENV)
- if (0 > putenv(apr_pstrcat(pool, envvar, "=", value, NULL))
+ if (0 > putenv(apr_pstrcat(pool, envvar, "=", value, NULL)))
return APR_ENOMEM;
return APR_SUCCESS;