]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Only define S_ISTXT if S_ISVTX is defined
authorAaron Dierking <aarond@fb.com>
Thu, 14 Jun 2018 18:38:32 +0000 (11:38 -0700)
committerGuillem Jover <guillem@hadrons.org>
Mon, 18 Jun 2018 02:31:00 +0000 (04:31 +0200)
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>
include/bsd/unistd.h

index 1f9c5f8ee13db5b72224a0a2a400705bcd3116bf..c25977d5d13cf57134e52bcddff1b95b6b643194 100644 (file)
@@ -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