From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <77809e6ee51ce7f2cb0aaafe9023b2b8.axp-list@archive.invalid> X-Archive-Original-Message-ID: <19971023082207Z231518-4217+2@mea.tmt.tele.fi> Date: Thu, 23 Oct 1997 11:22:04 +0300 (EET DST) From: Matti Aarnio Subject: 2.1.59 include bug (and patch) Hello, (patch way down below) I am writing software that uses IPv6, and I am trying to do it in utmost portable way. That is, my code autoconfigures to see what kind of system there is, and what facilities it has. I have 2.1.59/VGER sources running both at my i686 box, and at my Alpha. Both have RedHat 4.2 (more or less) These systems are quite different when it comes to the use of kernel defined and files. The Alpha systems have had GNU LIBC in them, while i686 has libc5. The GNU LIBC does not include any of the , nor files, but also it does not have complete IPv6 API in. My software therefore has following includes for it to work my IPv6 platforms: #include #include #ifdef HAVE_NETINET_IN6_H #include #endif #ifdef HAVE_NETINET6_IN6_H #include #endif #ifdef HAVE_LINUX_IN6_H #include #endif #include #if !defined(EAI_AGAIN) || !defined(AI_NONAME) #include "netdb6.h" #endif These last two fill in lacking details for getaddrinfo(), and getnameinfo() API uses what the system might have.. Basically all things that IPv6 application needs should be available thru without having to resort to calling system specific things like . Anyway, when this application includes , it begins to complain about type __u8 in the Alpha, but not in i686. It took me a while to realize that the reason is that this file does not have #include , while does have it... # diff -u /usr/include/linux/in6.h{~,} --- /usr/include/linux/in6.h~ Thu Oct 23 11:17:17 1997 +++ /usr/include/linux/in6.h Thu Oct 23 11:17:33 1997 @@ -21,6 +21,7 @@ #ifndef _LINUX_IN6_H #define _LINUX_IN6_H +#include /* * IPv6 address structure /Matti Aarnio -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com