poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] poke: include <arpa/inet.h> doesn't exist on windows


From: Jose E. Marchesi
Subject: Re: [PATCH] poke: include <arpa/inet.h> doesn't exist on windows
Date: Fri, 16 Feb 2024 09:00:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Hannes.

OK for both master and maint/poke-4.
I'm curious, what header file provides htonl in windows?

> 2024-02-15  Hannes Domani  <ssbssa@yahoo.de>
>
>       * poke/poke.c: Don't include <arpa/inet.h> on windows.
> ---
>  poke/poke.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/poke/poke.c b/poke/poke.c
> index 9f226960..eb765225 100644
> --- a/poke/poke.c
> +++ b/poke/poke.c
> @@ -26,7 +26,9 @@
>  #include <locale.h>
>  #include <textstyle.h>
>  #include <assert.h>
> +#ifndef _WIN32
>  #include <arpa/inet.h> /* For htonl */
> +#endif
>  
>  #ifdef HAVE_HSERVER
>  #  include "pk-hserver.h"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]