Problems using libcurl on Android

I’m using libcurl to download a file inside cocos2dx.
It works perfectly on Win32, but on Android I can’t even build the project. I get multiple errors, such as:
curl_off_t does not name a type curl_off_t has not been declared curl_off_t was not declared in this scope
the errors are on curl.h and curlrules.h

How can I use libcurl on android?

Thanks in advance,
Paulo