Only define S_ISTXT if S_ISVTX is defined Windows doesn't provide S_ISVTX. Prefer not defining it rather than defining it to something invalid. Signed-off-by: Guillem Jover <guillem@hadrons.org>
diff --git a/include/bsd/unistd.h b/include/bsd/unistd.h
index 1f9c5f8..c25977d 100644
--- a/include/bsd/unistd.h
+++ b/include/bsd/unistd.h
@@ -41,7 +41,7 @@
#endif
#include <sys/stat.h>
-#ifndef S_ISTXT
+#if !defined(S_ISTXT) && defined(S_ISVTX)
#define S_ISTXT S_ISVTX
#endif