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>
This commit is contained in:
Aaron Dierking 2018-06-14 11:38:32 -07:00 committed by Guillem Jover
parent b9dee9f69a
commit 3d9c6c08ed

View 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