Kouhei Sutou
null+****@clear*****
Thu Mar 29 11:38:52 JST 2018
Kouhei Sutou 2018-03-29 11:38:52 +0900 (Thu, 29 Mar 2018) New Revision: 8ada8dac77a05b726286da6b7e2588e6a06fbfaf https://github.com/groonga/groonga/commit/8ada8dac77a05b726286da6b7e2588e6a06fbfaf Message: futimens() isn't available on macOS Modified files: lib/io.c Modified: lib/io.c (+3 -0) =================================================================== --- lib/io.c 2018-03-28 17:46:20 +0900 (1df6d8565) +++ lib/io.c 2018-03-29 11:38:52 +0900 (d3f40f199) @@ -2137,6 +2137,8 @@ grn_msync(grn_ctx *ctx, fileinfo *fi, void *start, size_t length) return r; } +/* TODO: We should check futimens() availability. */ +#ifdef __linux__ if (fi->fd > 0) { struct timespec times[2]; times[0].tv_nsec = UTIME_NOW; @@ -2146,6 +2148,7 @@ grn_msync(grn_ctx *ctx, fileinfo *fi, void *start, size_t length) SERR("futimens failed: <%d>", fi->fd); } } +#endif return r; } -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180329/3d14f311/attachment-0001.htm