[Groonga-commit] groonga/groonga at c019cfb [master] Fix a build error on *BSD

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Nov 30 22:26:48 JST 2014


Kouhei Sutou	2014-11-30 22:26:48 +0900 (Sun, 30 Nov 2014)

  New Revision: c019cfbfbf5365c28ce727a46448aa6f77de8543
  https://github.com/groonga/groonga/commit/c019cfbfbf5365c28ce727a46448aa6f77de8543

  Message:
    Fix a build error on *BSD
    
    *BSD doesn't define off64_t. We should use off_t on the environment.
    
    GitHub: fix #253
    
    Reported by Hiroshi Hatake. Thanks!!!

  Modified files:
    lib/grn.h

  Modified: lib/grn.h (+4 -0)
===================================================================
--- lib/grn.h    2014-11-30 22:13:26 +0900 (ab720ef)
+++ lib/grn.h    2014-11-30 22:26:48 +0900 (868133c)
@@ -174,6 +174,10 @@ typedef SOCKET grn_sock;
 #  include <unistd.h>
 # endif /* HAVE_UNISTD_H */
 
+# ifndef __off64_t_defined
+typedef off_t off64_t;
+# endif
+
 # ifndef PATH_MAX
 #  if defined(MAXPATHLEN)
 #   define PATH_MAX MAXPATHLEN
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index