Re: Build error on AIX 6/7 with freeTDS 1.00.6 (current stable)

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4f=CDSiEhZPfGCZLtM0koQWGBMd==YFAoT3PHuL5JTyqA@mail.gmail.com>
2016-06-22 15:12 GMT+01:00 Fabrice Manfroi <[email protected]>:
> Hello,
>
> I'm trying to build the last stable freeTDS sources but it fails with
> the following compilation errors:
>
> tls.c:719: error: 'AF_INET6' undeclared (first use in this function)
> tls.c:719: error: (Each undeclared identifier is reported only once
> tls.c:719: error: for each function it appears in.)
> tls.c:722: error: 'AF_INET' undeclared (first use in this function)
>
> It seems that an include of the sys/socket.h header is missing.
>
> I propose the attached patch to fix the problem.
>
> Best Regards.
>

I would prefer the include in the C file. tds.h is included everywhere.

Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.