Commit 3d9c6c08ed254cfe16fc53867b1fe6f12031873c

Aaron Dierking 2018-06-14T11:38:32

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
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