[freetds] make error: latest snapshot; Solaris
ZIGLIO, Frediano, VF-IT
Frediano.Ziglio at vodafone.com
Thu Jul 7 07:15:51 EDT 2005
>
> cheers freddy - that helped.
>
> 2 things :
>
> in src/tds/query.c - function tds_put_n_as_ucs2() we use a function
> "alloca"
> this is not supported in my C compiler - is it gnu only ?
> I've replaced
> with malloc().
>
> in src/dblib/bcp.c - function bcp_exec() there is a
> declaration "RETCODE
> ret = 0;" which needs moving to the top...
>
>
> Bill
>
alloca is C however is not so portable as it seems. If I remember there
is some stuff for configure...
For bcp.c I fully agree. Try attached patch, it use a different way to
handle buffer allocation.
This patch is again current snapshot (updated an hour ago) but should
work even with yesterday version.
freddy77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vedi.diff.gz
Type: application/x-gzip
Size: 2610 bytes
Desc: vedi.diff.gz
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20050707/84c86337/vedi.diff.bin
More information about the FreeTDS
mailing list