Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Fabrice Manfroi <fm AT 4js.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Build error on AIX 6/7 with freeTDS 1.00.6 (current stable)
  • Date: Wed, 22 Jun 2016 16:35:22 +0200

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)
fm AT 4js.com - Tel +33 (0)3 88 18 61 20 - Fax +33 (0)3 88 18 61 21
--
From 3ffac89f81f9a00f1282f0bd37386efdc8c60831 Mon Sep 17 00:00:00 2001
From: Manfroi Fabrice <fm AT 4js.com>
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

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.24.

Top of Page