Fossil SCM
Include "sys/times.h" in file.c if not compiling on windows. This quiets a compiler warning.
Commit
bf160cf014c53c94ba1051d1590ccce1ba5ab90f
Parent
54085d52c423f62…
1 file changed
+1
-2
+1
-2
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -35,12 +35,11 @@ | ||
| 35 | 35 | */ |
| 36 | 36 | #ifdef _WIN32 |
| 37 | 37 | # include <direct.h> |
| 38 | 38 | # include <windows.h> |
| 39 | 39 | # include <sys/utime.h> |
| 40 | -#endif | |
| 41 | -#ifdef __CYGWIN__ | |
| 40 | +#else | |
| 42 | 41 | # include <sys/time.h> |
| 43 | 42 | #endif |
| 44 | 43 | |
| 45 | 44 | /* |
| 46 | 45 | ** The file status information from the most recent stat() call. |
| 47 | 46 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -35,12 +35,11 @@ | |
| 35 | */ |
| 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 |
| --- src/file.c | |
| +++ src/file.c | |
| @@ -35,12 +35,11 @@ | |
| 35 | */ |
| 36 | #ifdef _WIN32 |
| 37 | # include <direct.h> |
| 38 | # include <windows.h> |
| 39 | # include <sys/utime.h> |
| 40 | #else |
| 41 | # include <sys/time.h> |
| 42 | #endif |
| 43 | |
| 44 | /* |
| 45 | ** The file status information from the most recent stat() call. |
| 46 |