Fossil SCM
Fixed Win32 build breakage
Commit
dbb2cee11315443a63540a760d2215bc55d40324
Parent
f763b841982b46d…
1 file changed
+4
+4
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -73,11 +73,15 @@ | ||
| 73 | 73 | int file_isexe(const char *zFilename){ |
| 74 | 74 | struct stat buf; |
| 75 | 75 | if( stat(zFilename, &buf)!=0 ){ |
| 76 | 76 | return 0; |
| 77 | 77 | } |
| 78 | +#ifdef __MINGW32__ | |
| 79 | + return ((S_IXUSR)&buf.st_mode)!=0; | |
| 80 | +#else | |
| 78 | 81 | return ((S_IXUSR|S_IXGRP|S_IXOTH)&buf.st_mode)!=0; |
| 82 | +#endif | |
| 79 | 83 | } |
| 80 | 84 | |
| 81 | 85 | /* |
| 82 | 86 | ** Set or clear the execute bit on a file. |
| 83 | 87 | */ |
| 84 | 88 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -73,11 +73,15 @@ | |
| 73 | int file_isexe(const char *zFilename){ |
| 74 | struct stat buf; |
| 75 | if( stat(zFilename, &buf)!=0 ){ |
| 76 | return 0; |
| 77 | } |
| 78 | return ((S_IXUSR|S_IXGRP|S_IXOTH)&buf.st_mode)!=0; |
| 79 | } |
| 80 | |
| 81 | /* |
| 82 | ** Set or clear the execute bit on a file. |
| 83 | */ |
| 84 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -73,11 +73,15 @@ | |
| 73 | int file_isexe(const char *zFilename){ |
| 74 | struct stat buf; |
| 75 | if( stat(zFilename, &buf)!=0 ){ |
| 76 | return 0; |
| 77 | } |
| 78 | #ifdef __MINGW32__ |
| 79 | return ((S_IXUSR)&buf.st_mode)!=0; |
| 80 | #else |
| 81 | return ((S_IXUSR|S_IXGRP|S_IXOTH)&buf.st_mode)!=0; |
| 82 | #endif |
| 83 | } |
| 84 | |
| 85 | /* |
| 86 | ** Set or clear the execute bit on a file. |
| 87 | */ |
| 88 |