Attempt to fix win32 build of pg_verify_checksums

S_ISLNK doesn't exist on Win32, instead we should use
pgwin32_is_junction().
This commit is contained in:
Magnus Hagander 2018-04-05 22:38:03 +02:00
parent 1fde38beaa
commit 3b0b4f31f7
1 changed files with 4 additions and 0 deletions

View File

@ -188,7 +188,11 @@ scan_directory(char *basedir, char *subdir)
scan_file(fn, segmentno);
}
#ifndef WIN32
else if (S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))
#else
else if (S_ISDIR(st.st_mode) || pgwin32_is_junction(fn))
#endif
scan_directory(path, de->d_name);
}
closedir(dir);