Permalink
Browse files

define CLEAR_ERRSV if undefined

  • Loading branch information...
spiritloose committed Oct 17, 2009
1 parent 377b40d commit 340720acb951274f6aa087ca930aebe18ffa74fa
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod_psgi.c
View
@@ -31,6 +31,10 @@
#include "apr_strings.h"
#include "apr_hash.h"
+#ifndef CLEAR_ERRSV /* should support in ppport.h ? */
+#define CLEAR_ERRSV() STMT_START { sv_setpvn(ERRSV,"",0); if (SvMAGICAL(ERRSV)) { mg_free(ERRSV); } SvPOK_only(ERRSV); } STMT_END
+#endif /* CLEAR_ERRSV */
+
#ifdef _WIN32
/* use perl's uid_t/gid_t. disable apr's macros. */
#undef uid_t

0 comments on commit 340720a

Please sign in to comment.