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]> |
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. _______________________________________________ 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, 858 B)
From 69495a901df8ac99b1c0dfe9688c0e4a6593dd3f Mon Sep 17 00:00:00 2001 From: Manfroi Fabrice <[email protected]> Date: Wed, 22 Jun 2016 16:06:20 +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) --- include/freetds/tds.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/freetds/tds.h b/include/freetds/tds.h index 685c75b..8541314 100644 --- a/include/freetds/tds.h +++ b/include/freetds/tds.h @@ -25,6 +25,10 @@ #include <stdio.h> #include <time.h> +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + #ifdef HAVE_STDDEF_H #include <stddef.h> #endif -- 2.1.4
signature.asc
(application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXapzgAAoJEN0L0qfi7nGTOrYH+webHvxO4paG6gT5FRFyaADD a3+mh6vp3pPUXLhWMtJpre18B+YsHaSmuj+EcDGe2cA+G62pPu+CFbfV1aS/+gH5 QrNSoXxu0Ha7MTMD1Hxu3wjC+j07v4Vtsqtr4OHAe+uGDYDxt90848gt1RHIhT4Q GTMtj7R/GOLIZyBw++8smy8dyk/rWYyLV82JYRLqnCiPSblo4Y1oqh+40ddoQpv5 JYvhVIVBludz5MGWwx0GpWdX7hG1woyg+SIZ/y1I97TQoIz1fXqy1zn/4W6G2dem 9XKY4vx7gUIk8KKulp+iqr7F+X0gOPMSK30JDCsOYlcvmQuS90LUzPmVylrDTbY= =auV1 -----END PGP SIGNATURE-----