Fixed config.c to compile on Unix.

This commit is contained in:
Greg Wroblewski
2013-03-27 14:31:19 -07:00
parent a47a4ce4f9
commit b7d3a084c2

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;