Hi!

I managed to fix this copying the required includes from the latest
libmicrohttpd package found in debian testing. It works fine now.

Code can be found here:

https://github.com/cinemast/libjson-rpc-cpp/blob/develop/src/jsonrpccpp/server/connectors/httpserver.h

I am talking about the first few lines:


#include <stdarg.h>
#include <stdint.h>
#include <sys/types.h>
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <ws2tcpip.h>
#if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED)
#define _SSIZE_T_DEFINED
typedef intptr_t ssize_t;
#endif // !_SSIZE_T_DEFINED */
#else
#include <unistd.h>
#include <sys/time.h>
#include <sys/socket.h>
#endif


Greetings
Peter

On 10/30/2014 09:48 PM, Piotr Grzybowski wrote:
> hi Peter, hi Christian, hi everyone ;-)
>
>  just in passing: do you have stddef.h included somewhere possibly
> with using namespace std? one thing is sized-int types but for me a
> more serious problem is the apparent lack of size_t definition.
>
> cheers,
> pg
>
>
> On Thu, Oct 30, 2014 at 1:26 AM, Peter Spiess-Knafl <[email protected]> 
> wrote:
>> Hello!
>>
>> I built a JSON-RPC framework which I currently try to move from mongoose
>> to libmicrohttpd.
>>
>> Everything builds fine under Debian Jessie. But on the travis-ci agent,
>> which runs Ubuntu 12.04 Server I get the following compile error:
>>
>> /usr/include/microhttpd.h:497:3: error: unknown type name 'intptr_t'
>>
>> Build log can be found here:
>>
>> https://travis-ci.org/cinemast/libjson-rpc-cpp/jobs/39444160#L143
>>
>> The corresponding source code can be found here:
>> https://github.com/cinemast/libjson-rpc-cpp/blob/feature/libmicrohttpd/src/jsonrpccpp/server/connectors/httpserver.h
>> https://github.com/cinemast/libjson-rpc-cpp/blob/feature/libmicrohttpd/src/jsonrpccpp/server/connectors/httpserver.cpp
>>
>> Has anyone any ideas on that?
>>
>> Thanks in advance,
>> Peter
>>
>>

Reply via email to