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