# [PATCH 1/6] Disable IPv6 support for Haiku

4 messages from 2008-08-17 to 2008-08-18. Participants: Andreas Färber, Alex Riesen.
Thread: https://gitlist.dev/t/15047

## Andreas Färber, 2008-08-17 08:56

Subject: [PATCH 1/6] Disable IPv6 support for Haiku
Message-ID: <7CCFCB0B-382F-4A94-B8A7-796156A73CEF@web.de>
URL: https://gitlist.dev/e/7CCFCB0B-382F-4A94-B8A7-796156A73CEF%40web.de

```
Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Acked-by: Ingo Weinhold <ingo_weinhold@gmx.de>
Acked-by: Scott McCreary <scottmc2@gmail.com>
---
  Makefile |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 53ab4b5..b22dbcf 100644
--- a/Makefile
+++ b/Makefile
@@ -728,6 +728,9 @@ ifeq ($(uname_S),HP-UX)
  	NO_HSTRERROR = YesPlease
  	NO_SYS_SELECT_H = YesPlease
  endif
+ifeq ($(uname_S),Haiku)
+	NO_IPV6 = YesPlease
+endif
  ifneq (,$(findstring MINGW,$(uname_S)))
  	NO_MMAP = YesPlease
  	NO_PREAD = YesPlease
-- 
1.6.0.rc3.32.g8aaa

```

## Alex Riesen, 2008-08-17 20:33

Subject: Re: [PATCH 1/6] Disable IPv6 support for Haiku
Message-ID: <20080817203335.GB6366@steel.home>
URL: https://gitlist.dev/e/20080817203335.GB6366%40steel.home
In-Reply-To: <7CCFCB0B-382F-4A94-B8A7-796156A73CEF@web.de>

```
Andreas Färber, Sun, Aug 17, 2008 10:56:56 +0200:
> +ifeq ($(uname_S),Haiku)
> +	NO_IPV6 = YesPlease
> +endif

Does Haiku have no IPv6 support at all, or it is just the getaddrinfo
and the like functions which are missing?

```

## Andreas Färber, 2008-08-18 17:23

Subject: Re: [PATCH 1/6] Disable IPv6 support for Haiku
Message-ID: <795912D9-BAA1-4E42-A533-435CB1BCCCAC@web.de>
URL: https://gitlist.dev/e/795912D9-BAA1-4E42-A533-435CB1BCCCAC%40web.de
In-Reply-To: <20080817203335.GB6366@steel.home>

```

Am 17.08.2008 um 22:33 schrieb Alex Riesen:

> Andreas Färber, Sun, Aug 17, 2008 10:56:56 +0200:
>> +ifeq ($(uname_S),Haiku)
>> +	NO_IPV6 = YesPlease
>> +endif
>
> Does Haiku have no IPv6 support at all, or it is just the getaddrinfo
> and the like functions which are missing?

Haiku does not yet have complete IPv6 support afaik (would've been a  
GSoC project), it does have getaddrinfo though. Not setting NO_IPV6  
currently leads to compilation errors (redefinition of struct  
sockaddr_in), I assume that should be fixed on their side of things.

In the current series of patches I had not included a check for  
libnetwork in configure.ac, so that getaddrinfo does not get detected.  
Would you prefer to have it already detected, but to override it via  
the above Makefile line? (That works as well.) Or to have it detected  
but have the user manually pass NO_IPV6=YesPlease to avoid a future  
revert of that line?

Andreas

```

## Alex Riesen, 2008-08-18 20:04

Subject: Re: [PATCH 1/6] Disable IPv6 support for Haiku
Message-ID: <20080818200429.GD3262@steel.home>
URL: https://gitlist.dev/e/20080818200429.GD3262%40steel.home
In-Reply-To: <795912D9-BAA1-4E42-A533-435CB1BCCCAC@web.de>

```
Andreas Färber, Mon, Aug 18, 2008 19:23:35 +0200:
> Am 17.08.2008 um 22:33 schrieb Alex Riesen:
>> Andreas Färber, Sun, Aug 17, 2008 10:56:56 +0200:
>>> +ifeq ($(uname_S),Haiku)
>>> +	NO_IPV6 = YesPlease
>>> +endif
>>
>> Does Haiku have no IPv6 support at all, or it is just the getaddrinfo
>> and the like functions which are missing?
>
> Haiku does not yet have complete IPv6 support afaik (would've been a  
> GSoC project), it does have getaddrinfo though. Not setting NO_IPV6  
> currently leads to compilation errors (redefinition of struct  
> sockaddr_in), I assume that should be fixed on their side of things.

Ah, that's what it was...

> In the current series of patches I had not included a check for  
> libnetwork in configure.ac, so that getaddrinfo does not get detected.  
> Would you prefer to have it already detected, but to override it via the 
> above Makefile line? (That works as well.) Or to have it detected but 
> have the user manually pass NO_IPV6=YesPlease to avoid a future revert of 
> that line?

I think your patch as-is will be preferred (it just works).
It is not a big deal to change it later.

```
