[Groonga-commit] groonga/groonga at ce40fb3 [master] Check unlink() availability

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 30 20:02:07 JST 2014


Kouhei Sutou	2014-10-30 20:02:07 +0900 (Thu, 30 Oct 2014)

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

  Message:
    Check unlink() availability

  Modified files:
    build/ac_macros/check_functions.m4
    lib/grn.h

  Modified: build/ac_macros/check_functions.m4 (+1 -0)
===================================================================
--- build/ac_macros/check_functions.m4    2014-10-30 19:59:08 +0900 (5046e8c)
+++ build/ac_macros/check_functions.m4    2014-10-30 20:02:07 +0900 (2a61de2)
@@ -10,4 +10,5 @@ AC_CHECK_FUNCS(open)
 AC_CHECK_FUNCS(read)
 AC_CHECK_FUNCS(strncasecmp)
 AC_CHECK_FUNCS(strtoull)
+AC_CHECK_FUNCS(unlink)
 AC_CHECK_FUNCS(write)

  Modified: lib/grn.h (+3 -1)
===================================================================
--- lib/grn.h    2014-10-30 19:59:08 +0900 (e588497)
+++ lib/grn.h    2014-10-30 20:02:07 +0900 (03e691a)
@@ -122,7 +122,9 @@
 # if !defined(__GNUC__) && _MSC_VER < 1500
 #  define vsnprintf(str, size, format, ap) _vsnprintf(str, size, format, ap)
 # endif /* !defined(__GNUC__) && _MSC_VER < 1500 */
-# define unlink(pathname) _unlink(pathname)
+# ifndef HAVE_UNLINK
+#  define unlink(pathname) _unlink(pathname)
+# endif
 # define getpid() _getpid()
 # if !defined(__GNUC__) && _MSC_VER < 1400
 #  define fstat(fd, buf) _fstat(fd, buf)
-------------- next part --------------
HTML����������������������������...
다운로드 



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