Kouhei Sutou
null+****@clear*****
Thu Jun 9 16:26:40 JST 2016
Kouhei Sutou 2016-06-09 16:26:40 +0900 (Thu, 09 Jun 2016) New Revision: ef1aa9b5d8b313ce5beb9d110b8d1863dfeeae60 https://github.com/pgroonga/pgroonga/commit/ef1aa9b5d8b313ce5beb9d110b8d1863dfeeae60 Message: Add a code to check XLOG support Modified files: src/pgrn_compatible.h src/pgroonga.c Modified: src/pgrn_compatible.h (+4 -0) =================================================================== --- src/pgrn_compatible.h 2016-06-09 16:23:43 +0900 (0e9f34f) +++ src/pgrn_compatible.h 2016-06-09 16:26:40 +0900 (98a013e) @@ -20,6 +20,10 @@ # define PGRN_SUPPORT_CREATE_ACCESS_METHOD #endif +#if PG_VERSION_NUM >= 90600 +# define PGRN_SUPPORT_XLOG +#endif + #ifndef ERRCODE_SYSTEM_ERROR # define ERRCODE_SYSTEM_ERROR ERRCODE_IO_ERROR #endif Modified: src/pgroonga.c (+3 -0) =================================================================== --- src/pgroonga.c 2016-06-09 16:23:43 +0900 (342bfd7) +++ src/pgroonga.c 2016-06-09 16:26:40 +0900 (32cf30a) @@ -19,6 +19,9 @@ #ifdef PGRN_SUPPORT_CREATE_ACCESS_METHOD # include <access/amapi.h> #endif +#ifdef PGRN_SUPPORT_XLOG +# include <access/generic_xlog.h> +#endif #ifdef PGRN_SUPPORT_OPTIONS # include <access/reloptions.h> #endif -------------- next part -------------- HTML����������������������������...Download