Eion Robb created THRIFT-3093:
---------------------------------

             Summary: mingw compile fixes for c++ library 0.9.2
                 Key: THRIFT-3093
                 URL: https://issues.apache.org/jira/browse/THRIFT-3093
             Project: Thrift
          Issue Type: Bug
          Components: C++ - Library
    Affects Versions: 0.9.2
         Environment: mingw/cygwin
            Reporter: Eion Robb
            Priority: Minor
         Attachments: mingw-compile.diff

I've spent the morning trying to get the C++ library compiled using 
mingw/cygwin.  I had to make a few changes to get things to compile.  Some 
places didn't include sys/time.h when they needed to (for the timeval struct) 
and I needed to make the timeval struct in the global namespace, else the 
compiler would try to look for it in the thrift namespace.

There was also a minor issue with the syntax for the #ifdef HAVE_STRERROR_R 
check in Thrift.cpp; the config.h file says to set the parameter to 0 if 
strerror_r is not available - rather than undefine it.

Last of all, I had to add in an implementation of vsnprintf() as my version of 
mingw did not provide it



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to