diff options
author | Jan Lehnardt <jan@apache.org> | 2008-11-06 15:24:12 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2008-11-06 15:24:12 +0000 |
commit | 57a609a8f6123afb09ca3459ca034aa3c9cd8589 (patch) | |
tree | 42e8f6dfba117a4488f1ae5a57b0c0e360a25b22 /src/couchdb | |
parent | f9f5d67681f2fe9321820968c873208b8d8d7e4d (diff) |
Fix warning on Linux.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@711878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-rw-r--r-- | src/couchdb/couch_erl_driver.c | 7 |
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) { |