Fossil SCM
Add a conditional #include in an attempt to get the build working on Cygwin.
Commit
b963446708df0d0c04fc8dac6d3986cef715ba63
Parent
4f8c8975bc4d130…
1 file changed
+3
+3
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -36,10 +36,13 @@ | ||
| 36 | 36 | #ifdef _WIN32 |
| 37 | 37 | # include <direct.h> |
| 38 | 38 | # include <windows.h> |
| 39 | 39 | # include <sys/utime.h> |
| 40 | 40 | #endif |
| 41 | +#ifdef __CYGWIN__ | |
| 42 | +# include <sys/time.h> | |
| 43 | +#endif | |
| 41 | 44 | |
| 42 | 45 | /* |
| 43 | 46 | ** The file status information from the most recent stat() call. |
| 44 | 47 | ** |
| 45 | 48 | ** Use _stati64 rather than stat on windows, in order to handle files |
| 46 | 49 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -36,10 +36,13 @@ | |
| 36 | #ifdef _WIN32 |
| 37 | # include <direct.h> |
| 38 | # include <windows.h> |
| 39 | # include <sys/utime.h> |
| 40 | #endif |
| 41 | |
| 42 | /* |
| 43 | ** The file status information from the most recent stat() call. |
| 44 | ** |
| 45 | ** Use _stati64 rather than stat on windows, in order to handle files |
| 46 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -36,10 +36,13 @@ | |
| 36 | #ifdef _WIN32 |
| 37 | # include <direct.h> |
| 38 | # include <windows.h> |
| 39 | # include <sys/utime.h> |
| 40 | #endif |
| 41 | #ifdef __CYGWIN__ |
| 42 | # include <sys/time.h> |
| 43 | #endif |
| 44 | |
| 45 | /* |
| 46 | ** The file status information from the most recent stat() call. |
| 47 | ** |
| 48 | ** Use _stati64 rather than stat on windows, in order to handle files |
| 49 |