gnustep / tools-android

Objective-C on Android with Foundation, CoreFoundation, and libdispatch.
MIT License
48 stars 12 forks source link

Build failure in libcurl with NDK r26 #17

Closed triplef closed 1 year ago

triplef commented 1 year ago
libcurl/lib/formdata.c:796:10: error: call to undeclared function 'fseeko'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  return fseeko(stream, (off_t)offset, whence);
         ^

This error was also discussed in https://github.com/curl/curl/issues/12086.

triplef commented 1 year ago

Fixed by updating Android target SDK to 24, which has fseeko available on armeabi-v7a.

SirLynix commented 7 months ago

Here's the fix for Android < 24: https://github.com/curl/curl/pull/13264, in case someone hits the same issue.