The header has been removed from source code, as well as other unneeded
headers in that section.
Only <ifaddrs.h> and <netdb.h> are needed.

On Fri, Jan 6, 2023 at 9:33 AM Petter Reinholdtsen <p...@hungry.com> wrote:

>
> Package: libonvif
> Version: 1.4.4-1
> Tags: patch
>
> The code enumerating all network interfaces using getifaddrs() include a
> linux specific header file.  As far as I can tell from getifaddrs(3),
> there is no need for the <linux/if_link.h> include, only the <ifaddrs.h>
> one is needed.  The latter is available on Hurd, while the former is
> not.
>
> This patch get the code building on Debian Hurd.
>
> diff --git a/onvif-gui/src/settingspanel.cpp
> b/onvif-gui/src/settingspanel.cpp
> index b0c6e72..ff0cc52 100644
> --- a/onvif-gui/src/settingspanel.cpp
> +++ b/onvif-gui/src/settingspanel.cpp
> @@ -31,7 +31,6 @@
>      #include <stdio.h>
>      #include <stdlib.h>
>      #include <unistd.h>
> -    #include <linux/if_link.h>
>  #endif
>
>  #include <cmath>
>
> --
> Happy hacking
> Petter Reinholdtsen
>

Reply via email to