Kouhei Sutou
null+****@clear*****
Tue Mar 24 22:04:20 JST 2015
Kouhei Sutou 2015-03-24 22:04:20 +0900 (Tue, 24 Mar 2015) New Revision: 98facf2709553b82dd1803ad335bd663ec1883ee https://github.com/groonga/groonga/commit/98facf2709553b82dd1803ad335bd663ec1883ee Message: windows: use _fileno() instead of fileno() Modified files: lib/grn.h lib/logger.c Modified: lib/grn.h (+0 -3) =================================================================== --- lib/grn.h 2015-03-24 22:01:28 +0900 (23554d7) +++ lib/grn.h 2015-03-24 22:04:20 +0900 (c33ad7f) @@ -129,9 +129,6 @@ # if !defined(__GNUC__) && _MSC_VER < 1400 # define fstat(fd, buf) _fstat(fd, buf) # endif /* !defined(__GNUC__) && _MSC_VER < 1400 */ -# ifndef __GNUC__ -# define fileno(file) _fileno(file) -# endif /* __GNUC__ */ # ifdef HAVE__STRICMP # ifdef strcasecmp # undef strcasecmp Modified: lib/logger.c (+4 -0) =================================================================== --- lib/logger.c 2015-03-24 22:01:28 +0900 (333b896) +++ lib/logger.c 2015-03-24 22:04:20 +0900 (ec881f9) @@ -23,6 +23,10 @@ #include <stdio.h> #include <sys/stat.h> +#ifdef WIN32 +# define fileno(file) _fileno(file) +#endif + static void rotate_log_file(grn_ctx *ctx, const char *current_path) { -------------- next part -------------- HTML����������������������������...Download