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:
parent
1fde38beaa
commit
3b0b4f31f7
|
@ -188,7 +188,11 @@ scan_directory(char *basedir, char *subdir)
|
||||||
|
|
||||||
scan_file(fn, segmentno);
|
scan_file(fn, segmentno);
|
||||||
}
|
}
|
||||||
|
#ifndef WIN32
|
||||||
else if (S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))
|
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);
|
scan_directory(path, de->d_name);
|
||||||
}
|
}
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
|
Loading…
Reference in New Issue