Permalink
Browse files

Fix build break on win32

Change-Id: I3b317e6d6a0d6123e73067d88aba194c54ed00bf
Reviewed-on: http://review.couchbase.org/24988
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  • Loading branch information...
1 parent d551fa7 commit 8130fd479ee8592e73fccbd3253da132fd7c107b @trondn trondn committed with avsej Mar 5, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/config_static.h
  2. +1 −1 src/instance.c
View
@@ -94,6 +94,7 @@
#include "win32/win_errno_sock.h"
#define snprintf _snprintf
#define strcasecmp(a,b) _stricmp(a,b)
+#define strncasecmp(a,b,c) _strnicmp(a,b,c)
#undef strdup
#define strdup _strdup
#else
View
@@ -136,10 +136,10 @@ static lcb_error_t validate_hostname(const char *host, char **realhost)
path = strchr(host, '/');
if (path != NULL) {
+ size_t size;
if (strcmp(path, "/pools") != 0 && strcmp(path, "/pools/") != 0) {
return LCB_INVALID_HOST_FORMAT;
}
- size_t size;
size = path - host;
len = (int)size;
}

0 comments on commit 8130fd4

Please sign in to comment.