mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Fixes for new curl versions.
Looks like type.h is removed from curl distribution rendering xmlrpc-c code uncompileable. All code is wrapped around HAVE_CURLTYPES_H. Also if _REENTRANT was defined, gcc will report warning as it is defined by default (:S).
This commit is contained in:
parent
1addbd0c3c
commit
037460d4b3
@ -17,7 +17,11 @@
|
||||
#endif
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <curl/types.h>
|
||||
|
||||
#ifdef HAVE_CURLTYPES_H
|
||||
# include <curl/types.h>
|
||||
#endif
|
||||
|
||||
#include <curl/easy.h>
|
||||
#include <curl/multi.h>
|
||||
|
||||
|
@ -15,7 +15,11 @@
|
||||
#include "version.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <curl/types.h>
|
||||
|
||||
#ifdef HAVE_CURLTYPES_H
|
||||
# include <curl/types.h>
|
||||
#endif
|
||||
|
||||
#include <curl/easy.h>
|
||||
|
||||
#include "curlversion.h"
|
||||
|
@ -83,7 +83,11 @@
|
||||
#include "xmlrpc-c/time_int.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <curl/types.h>
|
||||
|
||||
#ifdef HAVE_CURLTYPES_H
|
||||
# include <curl/types.h>
|
||||
#endif
|
||||
|
||||
#include <curl/easy.h>
|
||||
#include <curl/multi.h>
|
||||
|
||||
|
@ -27,8 +27,10 @@
|
||||
#define PTHREADX_H_INCLUDED
|
||||
|
||||
#ifndef WIN32
|
||||
# ifndef _REENTRANT /* gcc warns since is already defined by default */
|
||||
# define _REENTRANT
|
||||
# include <pthread.h>
|
||||
# endif
|
||||
# include <pthread.h>
|
||||
#elif defined (WIN32)
|
||||
#include <windows.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user