fix Include filepath resolution for Windows (#653)

This commit is contained in:
Tess Gauthier 2023-01-09 15:02:09 -05:00 committed by GitHub
parent ad957f89e0
commit ba5a84ba35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2121,6 +2121,9 @@ process_server_config_line_depth(ServerOptions *options, char *line,
/* requested glob was not in cache */
debug2("%s line %d: new include %s",
filename, linenum, arg);
#ifdef WINDOWS
convertToForwardslash(arg);
#endif // WINDOWS
if ((r = glob(arg, 0, NULL, &gbuf)) != 0) {
if (r != GLOB_NOMATCH) {
fatal("%s line %d: include \"%s\" glob "