[Pkg-xfce-devel] Bug#564651: Bug#564651: xfce4-netload-plugin: FTBFS on kfreebsd-*: net/*.h: No such file or directory
Petr Salinger
Petr.Salinger at seznam.cz
Mon Jan 11 11:18:10 UTC 2010
> Thanks for the analysis and the patch. I guess I'll do a more
> maintainable solution using something like #ifndef __FREEBSD_KERNEL (or
> whatever name is the variable).
For maintainable solution please use
--- xfce4-netload-plugin-0.4.0.orig/panel-plugin/os.h
+++ xfce4-netload-plugin-0.4.0/panel-plugin/os.h
@@ -94,8 +94,10 @@
#include <net/if_media.h>
#include <net/if_mib.h>
#include <arpa/inet.h>
+#if (__FreeBSD_kernel__ < 8) && (__FreeBSD__ < 8)
#include <net/ppp_defs.h>
#include <net/if_ppp.h>
+#endif
#elif __NetBSD__ /* N E T B S D */
#include <stdio.h>
#include <sys/param.h>
More information about the Pkg-xfce-devel
mailing list