From 57a609a8f6123afb09ca3459ca034aa3c9cd8589 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Thu, 6 Nov 2008 15:24:12 +0000 Subject: Fix warning on Linux. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@711878 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_erl_driver.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3