Skip to Content.
Sympa Menu

freetds - Re: [freetds] alloca() usage, building master pre-0.95 on Windows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] alloca() usage, building master pre-0.95 on Windows
  • Date: Sun, 3 May 2015 00:47:06 +0100

2015-05-02 22:45 GMT+01:00 Ramiro Morales <cramm0 AT gmail.com>:
> On Sat, May 2, 2015 at 6:14 PM, Ramiro Morales <cramm0 AT gmail.com> wrote:
>
>> My question is: What would be the best path to fix this?:
>>
>> 1. Modify token.c to use another function instead of alloca, e.g.
>> malloc() which is widely used elsewhere in the code base?
>> 2. Patch token.c so it conditionally #include <malloc.h> if Visual C
>> is detected?
>> 3. Another option?
>
> Forgot to say I tested option 2 successfully and this the last
> remaining issue to get master to build on Windows.
>

Well.. a git pull should be enough :)

As is not a standard header I add check on configure scripts and
included conditionally.

Frediano




Archive powered by MHonArc 2.6.24.

Top of Page