Overview
SHA1 Hash: | dbb2cee11315443a63540a760d2215bc55d40324 |
---|---|
Date: | 2008-03-11 19:21:57 |
User: | mjanssen |
Comment: | Fixed Win32 build breakage |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/file.c from [6f2a64a222] to [0ad3dd78ce].
@@ -73,11 +73,15 @@ int file_isexe(const char *zFilename){ struct stat buf; if( stat(zFilename, &buf)!=0 ){ return 0; } +#ifdef __MINGW32__ + return ((S_IXUSR)&buf.st_mode)!=0; +#else return ((S_IXUSR|S_IXGRP|S_IXOTH)&buf.st_mode)!=0; +#endif } /* ** Set or clear the execute bit on a file. */