couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <>
Subject Re: Compiling snappy under Windows
Date Tue, 19 Jan 2016 16:42:19 GMT
Hi Nick,

That's my fault definitely. The fix should be simple, however.

This is our file:

This is their:

Their rules:

All what is need is to properly set preprocessor branch for the
windows system. I didn't have a chance to do that as I couldn't check
the result.

However, I don't see any ssize_t related references. May be this won't
work, but worth to try.

On Tue, Jan 19, 2016 at 7:24 PM, Nick North <> wrote:
> I'm trying to compile up CouchDB 2.0 on Windows, using Joan Touzet's
> PowerShell script. This used to work, but the 1.1.3 Snappy update in
> October broke Windows compatibility, as it uses the ssize_t type, which MS
> C++ does not understand.
> The original google/snappy repository code deals with this in autoconf, but
> that is not in use in the CouchDB version. There is a work-around by
> #including <BaseTsd.h>, but I'm not sure where the best place to put it
> would be. The couchdb-snappy/c_src/snappy files are all directly lifted
> from google/snappy, and it would be a shame to make CouchDB-specific
> changes to them. Would it make sense to put the Windows code into
> couchdb-snappy/c_src/ If someone can suggest the best place
> to put the work-around, I can submit a pull request.
> Thanks,
> Nick

View raw message