git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fde38b)
Attempt to fix win32 build of pg_verify_checksums
Thu, 5 Apr 2018 20:38:03 +0000 (22:38 +0200)
Thu, 5 Apr 2018 20:38:03 +0000 (22:38 +0200)
S_ISLNK doesn't exist on Win32, instead we should use
pgwin32_is_junction().


diff --git a/src/bin/pg_verify_checksums/pg_verify_checksums.c b/src/bin/pg_verify_checksums/pg_verify_checksums.c
index e37f39bd2a07d63f3ea9a6db6062d4f257cd5819..3bdfb078bb9cd25c28c4bc70a7ef89827df6aeda 100644 (file)
--- 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);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /