From 3d9c6c08ed254cfe16fc53867b1fe6f12031873c Mon Sep 17 00:00:00 2001 From: Aaron Dierking Date: Thu, 14 Jun 2018 11:38:32 -0700 Subject: [PATCH] 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 --- include/bsd/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -#ifndef S_ISTXT +#if !defined(S_ISTXT) && defined(S_ISVTX) #define S_ISTXT S_ISVTX #endif