Skip to content

Commit 3b0b4f3

Browse files
committed
Attempt to fix win32 build of pg_verify_checksums
S_ISLNK doesn't exist on Win32, instead we should use pgwin32_is_junction().
1 parent 1fde38b commit 3b0b4f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_verify_checksums/pg_verify_checksums.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ scan_directory(char *basedir, char *subdir)
188188

189189
scan_file(fn, segmentno);
190190
}
191+
#ifndef WIN32
191192
else if (S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))
193+
#else
194+
else if (S_ISDIR(st.st_mode) || pgwin32_is_junction(fn))
195+
#endif
192196
scan_directory(path, de->d_name);
193197
}
194198
closedir(dir);

0 commit comments

Comments
 (0)