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

Fabrice Manfroi <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
No problem.

New patch attached.

Best Regards.

On 06/22/2016 04:16 PM, Frediano Ziglio wrote:
> I would prefer the include in the C file. tds.h is included everywhere.

-- 
Fabrice MANFROI
--
Four J's Development Tools (www.4js.com)
[email protected] - Tel +33 (0)3 88 18 61 20 - Fax +33 (0)3 88 18 61 21
--

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
0001-Fix-build-error-on-AIX-6.1-7.1-7.2.patch (text/x-patch, 815 B)
From 3ffac89f81f9a00f1282f0bd37386efdc8c60831 Mon Sep 17 00:00:00 2001
From: Manfroi Fabrice <[email protected]>
Date: Wed, 22 Jun 2016 16:33:53 +0200
Subject: [PATCH] Fix build error on AIX 6.1 / 7.1 / 7.2 :

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)
---
 src/tds/tls.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/tds/tls.c b/src/tds/tls.c
index 2f8064c..e6cfb62 100644
--- a/src/tds/tls.c
+++ b/src/tds/tls.c
@@ -22,6 +22,10 @@
 
 #include <stdio.h>
 
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 #if HAVE_ERRNO_H
 #include <errno.h>
 #endif /* HAVE_ERRNO_H */
-- 
2.1.4
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXaqIuAAoJEN0L0qfi7nGTDAkH/32ansKwWmcqwfaL7ElNtbBL
dVddKTbz7OtcVkDkGauQK6j4sKlHN2J5ZZyuQXUmm7/75Y66T8OePKdl7qIuoqq+
uE2orJ3vOjZyB8kU5+PXLHrwB7DKiej0S8MHn0GVMjD6MIJYiXc7nYZSQXH39xwk
kEFlqmzehwJeMFTQxZGHX8vPZmRs1/KD0scJesFCbvD09G5oDqGwd8nSka2CGSDR
J7y4BXcYO+ijSHBv2PyuZ9zAXTF8BifMuFeHS11YY7BY8RSBNmVv/UTId3l530Td
ADhlaJFkPDQPeHIPrio4gEyihtS3NQDAiaJg9wZTlU1Q0aFAjcxFMtyH031hdWM=
=t7MV
-----END PGP SIGNATURE-----
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.