On Tue, Nov 27, 2012 at 10:03 PM, Richard Hipp <d...@sqlite.org> wrote:
> > > On Tue, Nov 27, 2012 at 9:15 PM, Martin Gagnon <eme...@gmail.com> wrote: > >> Hi, >> >> I recently try to compile fossil under cygwin and it fail to build. >> >> Version from today: >> 4f8c8975bc4d1303a604da339f869c32eb0da960 2012-11-27 16:26:29 UTC >> >> $ make >> ... >> cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/export.o -c >> bld/export_.c >> cc -g -02 -DHAVE_AUTOCONFIG_G -I. -I./src -Ibld -o bld/file.o -c >> bld/file_.c >> ./src/file.c: In function 'file_set_mtime': >> ./src/file.c:401:18 error: array type has incomplete element type >> src/main.mk:584: recipe for target `bld/file.o' failed >> make: *** [bld/file.o] Error 1 >> ... >> >> After digging a bit, I found that the problematic code was added in this >> commit: >> >> http://fossil-scm.org/index.html/info/0c37874941c89728f6cc0063a2a44b8bc2a38c6c >> >> I temporarily get over the problem by including "sys/time.h" >> > > That breaks the MSVC build. > > Can you suggest another fix? > Cygwin don't define _WIN32, but __CYGWIN__, so you could put: ----------- #if defined(__CYGWIN__) # include <sys/time.h> #endif ----------- on top of src/file.c Regards, -- Martin G.
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users