1 Jun 2009 04:47
[patch] 7.19.5 docs/example patches for VMS.
John E. Malmberg <wb8tyw <at> qsl.net>
2009-06-01 02:47:43 GMT
2009-06-01 02:47:43 GMT
These patches are needed to get these docs/examples modules to compile on VMS. For anyauthput.c: <stdint.h> is not present on VMS. For debug.c and multi-debugcallback.c: VMS does not currently support %zd and %zx format qualifiers. For multi-debugcallback.c, passing a char value to a routine prototyped for taking a unsigned char will cause a warning compiler diagnostic on the HP VMS C compilers. For ftpupload.c: On 64 bit VMS, %lld needs to be used with CURL_SIZEOF_CURL_OFF_T is 8. The %ld generates a compile time warning as the inline optimizer detects the mis-match that the size does not match. I tried to use the CURL_FORMAT_OFF_T to build the format string. This is where I discovered that the configure script did not detect the correct format string to use on VMS. The configure script picked %I64d instead of %lld. I do not know how to fix the configure script to get it right, nor could I find any place in curl where the CURL_FORMAT_OFF_T is actually used. Regards, -John wb8tyw <at> qsl.net Personal Opinion Only(Continue reading)
RSS Feed