Fossil SCM

Include "sys/times.h" in file.c if not compiling on windows. This quiets a compiler warning.

drh 2012-12-07 12:57 trunk
Commit bf160cf014c53c94ba1051d1590ccce1ba5ab90f
1 file changed +1 -2
+1 -2
--- src/file.c
+++ src/file.c
@@ -35,12 +35,11 @@
3535
*/
3636
#ifdef _WIN32
3737
# include <direct.h>
3838
# include <windows.h>
3939
# include <sys/utime.h>
40
-#endif
41
-#ifdef __CYGWIN__
40
+#else
4241
# include <sys/time.h>
4342
#endif
4443
4544
/*
4645
** The file status information from the most recent stat() call.
4746
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button