Fixed config.c to compile on Unix.

This commit is contained in:
Breno Silva
2013-03-23 21:37:18 -04:00
parent 5457ebe0db
commit 601d3ed632

View File

@@ -1153,14 +1153,21 @@ ProcessInclude:
parms->directive = newdir;
#ifdef WIN32
// some config commands fail in APR when there are file
// permission issues or other OS-specific problems
//
__try
{
#endif
errmsg = invoke_cmd(cmd, parms, mconfig, args);
#ifdef WIN32
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
errmsg = "Command failed to execute (check file/folder permissions, syntax, etc.).";
}
#endif
if(errmsg != NULL)
break;