This helper program is only needed when building elf shared libraries,
and for some reason Windows is failing to compile POSIX's struct stat.
Windows doesn't support symlinks anyway.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
#include <stddef.h>
#include <errno.h>
+#if (defined _WIN32 || defined _WIN64 || defined __WINDOWS__)
+
+int main(int argc, char **argv)
+{
+ printf("symlinks not supported on Windows\n");
+ return 1;
+}
+
+#else
+
#ifndef S_ISLNK
#define S_ISLNK(mode) (((mode) & (_S_IFMT)) == (_S_IFLNK))
#endif
usage_error();
exit (0);
}
+
+#endif /* !(defined _WIN32 || defined _WIN64 || defined __WINDOWS__) */