Fossil SCM

Add a conditional #include in an attempt to get the build working on Cygwin.

drh 2012-11-28 11:13 trunk
Commit b963446708df0d0c04fc8dac6d3986cef715ba63
1 file changed +3
+3
--- src/file.c
+++ src/file.c
@@ -36,10 +36,13 @@
3636
#ifdef _WIN32
3737
# include <direct.h>
3838
# include <windows.h>
3939
# include <sys/utime.h>
4040
#endif
41
+#ifdef __CYGWIN__
42
+# include <sys/time.h>
43
+#endif
4144
4245
/*
4346
** The file status information from the most recent stat() call.
4447
**
4548
** Use _stati64 rather than stat on windows, in order to handle files
4649
--- 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

Keyboard Shortcuts

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