summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_erl_driver.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/couchdb/couch_erl_driver.c b/src/couchdb/couch_erl_driver.c
index 900ada4b..e3cbf4ab 100644
--- a/src/couchdb/couch_erl_driver.c
+++ b/src/couchdb/couch_erl_driver.c
@@ -17,6 +17,11 @@ specific language governing permissions and limitations under the License.
// means of calling into C code, however unlike the Fabric engine, coding
// errors in this module can crash the entire Erlang server.
+#ifdef DARWIN
+#define U_HIDE_DRAFT_API 1
+#define U_DISABLE_RENAMING 1
+#endif
+
#include "erl_driver.h"
#include "unicode/ucol.h"
#include "unicode/ucasemap.h"
@@ -87,7 +92,7 @@ static int return_control_result(void* pLocalResult, int localLen, char **ppRetB
return localLen;
}
-static int couch_drv_control(ErlDrvData drv_data, unsigned int command, const char *pBuf,
+static int couch_drv_control(ErlDrvData drv_data, unsigned int command, char *pBuf,
int bufLen, char **rbuf, int rlen)
{