Windows: define S_ISUID properly
commit168e9311200680dcd375048ba60ab17da8d638ed
authorJohannes Sixt <j6t@kdbg.org>
Wed, 21 Sep 2011 06:33:28 +0000 (21 08:33 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 6 Dec 2011 00:18:03 +0000 (6 00:18 +0000)
tree9102e87976d15917151687c7e3de53188f9eef61
parent91771c63739fbb3a82def24e280472852f8d7354
Windows: define S_ISUID properly

8fb3ad76 (fast-import: prevent producing bad delta) introduced the first
use of S_ISUID. Since before this commit the value was irrelevant, we had
only a dummy definition in mingw.h. But beginning with this commit the
macro must expand to a reasonable value. Make it so.

We do not change S_ISGID from the value 0 because it is used in path.c
(via FORCE_DIR_SET_GID) to set the mode on directories in a manner that
is not supported on Windows, and 0 is the right value in this case.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.h