Fossil SCM
Fix the build for unix.
Commit
4f0c38d81d037018fb7b356cf6be684b968cdbac
Parent
4f0413381dcc915…
1 file changed
+4
-2
+4
-2
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -56,15 +56,17 @@ | ||
| 56 | 56 | struct fossilStat { |
| 57 | 57 | i64 st_size; |
| 58 | 58 | i64 st_mtime; |
| 59 | 59 | int st_mode; |
| 60 | 60 | }; |
| 61 | -#else | |
| 62 | -# define fossilStat stat | |
| 63 | 61 | #endif |
| 64 | 62 | |
| 65 | 63 | #endif /* INTERFACE */ |
| 64 | + | |
| 65 | +#if !defined(_WIN32) || !(defined(__MSVCRT__) || defined(_MSC_VER)) | |
| 66 | +# define fossilStat stat | |
| 67 | +#endif | |
| 66 | 68 | |
| 67 | 69 | /* |
| 68 | 70 | ** On Windows S_ISLNK always returns FALSE. |
| 69 | 71 | */ |
| 70 | 72 | #if !defined(S_ISLNK) |
| 71 | 73 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -56,15 +56,17 @@ | |
| 56 | struct fossilStat { |
| 57 | i64 st_size; |
| 58 | i64 st_mtime; |
| 59 | int st_mode; |
| 60 | }; |
| 61 | #else |
| 62 | # define fossilStat stat |
| 63 | #endif |
| 64 | |
| 65 | #endif /* INTERFACE */ |
| 66 | |
| 67 | /* |
| 68 | ** On Windows S_ISLNK always returns FALSE. |
| 69 | */ |
| 70 | #if !defined(S_ISLNK) |
| 71 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -56,15 +56,17 @@ | |
| 56 | struct fossilStat { |
| 57 | i64 st_size; |
| 58 | i64 st_mtime; |
| 59 | int st_mode; |
| 60 | }; |
| 61 | #endif |
| 62 | |
| 63 | #endif /* INTERFACE */ |
| 64 | |
| 65 | #if !defined(_WIN32) || !(defined(__MSVCRT__) || defined(_MSC_VER)) |
| 66 | # define fossilStat stat |
| 67 | #endif |
| 68 | |
| 69 | /* |
| 70 | ** On Windows S_ISLNK always returns FALSE. |
| 71 | */ |
| 72 | #if !defined(S_ISLNK) |
| 73 |