Hi Nick, That's my fault definitely. The fix should be simple, however.
This is our file: https://github.com/apache/couchdb-snappy/blob/master/c_src/snappy/snappy-stubs-public.h This is their: https://github.com/google/snappy/blob/master/snappy-stubs-public.h.in Their rules: https://github.com/google/snappy/blob/master/configure.ac 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 <[email protected]> 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/snappy_nif.cc? If someone can suggest the best place > to put the work-around, I can submit a pull request. > > Thanks, > > Nick
