diff options
| author | Magnus Hagander | 2018-04-05 20:38:03 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2018-04-05 20:38:03 +0000 |
| commit | 3b0b4f31f73a5f45f8e122d826211c13cd2412f7 (patch) | |
| tree | a2738af4a76f9b0d37aa38b82091c8c2f2e3594c | |
| parent | 1fde38beaa0c3e66c340efc7cc0dc272d6254bb0 (diff) | |
Attempt to fix win32 build of pg_verify_checksums
S_ISLNK doesn't exist on Win32, instead we should use
pgwin32_is_junction().
| -rw-r--r-- | src/bin/pg_verify_checksums/pg_verify_checksums.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_verify_checksums/pg_verify_checksums.c b/src/bin/pg_verify_checksums/pg_verify_checksums.c index e37f39bd2a0..3bdfb078bb9 100644 --- a/src/bin/pg_verify_checksums/pg_verify_checksums.c +++ b/src/bin/pg_verify_checksums/pg_verify_checksums.c @@ -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); |
