diff -r af793c7580f1 Modules/_sqlite/module.c --- a/Modules/_sqlite/module.c Wed Jun 17 10:09:24 2015 -0500 +++ b/Modules/_sqlite/module.c Thu Jun 18 18:27:56 2015 +0700 @@ -121,6 +121,7 @@ Checks if a string contains a complete SQL statement. Non-standard."); #ifdef HAVE_SHARED_CACHE +#if !defined(__APPLE__) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7) static PyObject* module_enable_shared_cache(PyObject* self, PyObject* args, PyObject* kwargs) { @@ -149,6 +150,7 @@ \n\ Enable or disable shared cache mode for the calling thread.\n\ Experimental/Non-standard."); +#endif #endif /* HAVE_SHARED_CACHE */ static PyObject* module_register_adapter(PyObject* self, PyObject* args) @@ -246,9 +248,11 @@ {"complete_statement", (PyCFunction)module_complete, METH_VARARGS | METH_KEYWORDS, module_complete_doc}, #ifdef HAVE_SHARED_CACHE +#if !defined(__APPLE__) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_7) {"enable_shared_cache", (PyCFunction)module_enable_shared_cache, METH_VARARGS | METH_KEYWORDS, module_enable_shared_cache_doc}, #endif +#endif {"register_adapter", (PyCFunction)module_register_adapter, METH_VARARGS, module_register_adapter_doc}, {"register_converter", (PyCFunction)module_register_converter,