apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r516466 - /apr/apr/trunk/misc/unix/env.c
Date Fri, 09 Mar 2007 17:09:03 GMT
Author: trawick
Date: Fri Mar  9 09:09:02 2007
New Revision: 516466

URL: http://svn.apache.org/viewvc?view=rev&rev=516466
Log:
fix build failure on platforms without setenv()

Submitted by: Stefan Ruppert <ml ruppert-it.de>
Reviewed by: trawick

Modified:
    apr/apr/trunk/misc/unix/env.c

Modified: apr/apr/trunk/misc/unix/env.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/misc/unix/env.c?view=diff&rev=516466&r1=516465&r2=516466
==============================================================================
--- apr/apr/trunk/misc/unix/env.c (original)
+++ apr/apr/trunk/misc/unix/env.c Fri Mar  9 09:09:02 2007
@@ -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 @@
 
 #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;
 



Mime
View raw message