Add CURL_OFF_T definitions on HP-UX with HP aCC#11718
Add CURL_OFF_T definitions on HP-UX with HP aCC#11718michael-o wants to merge 1 commit intocurl:masterfrom michael-o:fix-curl_off_t-on-hpux
Conversation
HP-UX on IA64 provides two modes: 32 and 64 bit while 32 bit being the default one. Use "long long" in 32 bit mode and just "long" in 64 bit mode.
|
Thanks! |
HP-UX on IA64 provides two modes: 32 and 64 bit while 32 bit being the default one. Use "long long" in 32 bit mode and just "long" in 64 bit mode. Closes curl#11718
|
With this fix, our build which worked earlier is failing with socket connection because now the size of curl_socklen_t is 8 This seems to be an issue on HP-UX https://lists.nongnu.org/archive/html/bug-gnulib/2018-01/msg00083.html Need to use additional flags for the curl to work correctly after this change I've used the below flags for my build to work CFLAGS="+DD64 -AC99 -D_XOPEN_SOURCE=500 -D_HPUX_ALT_XOPEN_SOCKET_API -mt" |
Is is because you compile in wide mode? Moreover, the reference is for gnulib, how is this related to curl? |
HP-UX on IA64 provides two modes: 32 and 64 bit while 32 bit being the default one. Use "long long" in 32 bit mode and just "long" in 64 bit mode.
====================
Determined with:
Objects in both modes:
Don't be surprised hat the linked libraries in 64 bit mode are different, I don't build our entire stack in 64 bit, but on 32 bit only because it is enough for us.