Package: knemo
Version: 0.6.3-1
Severity: important
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweaks. Please find attached patch with tweaks.
Beware, small fix in kfreebsd-kernel-headers is also needed,
it is pending for 0.54.
It would also be nice if you can ask upstream
to include attached patch.
Thanks in advance
Petr
--- knemo-0.6.3.orig/src/knemod/syncstats/stats_vnstat.cpp
+++ knemo-0.6.3/src/knemod/syncstats/stats_vnstat.cpp
@@ -84,7 +84,7 @@
size_t len = sizeof( bootTime );
int mib[2] = { CTL_KERN, KERN_BOOTTIME };
- if ( sysctl( mib, 2, &btm, &len, NULL, 0 ) >= 0 )
+ if ( sysctl( mib, 2, &bootTime, &len, NULL, 0 ) >= 0 )
mSysBtime = bootTime.tv_sec;
#endif
}
--- knemo-0.6.3.orig/src/knemod/backends/bsdbackend.cpp
+++ knemo-0.6.3/src/knemod/backends/bsdbackend.cpp
@@ -53,6 +53,11 @@
#include <kio/global.h>
#include <stdio.h>
+#ifdef __GLIBC__
+#include <unistd.h>
+#include <netinet/ether.h>
+#endif
+
#include "config-knemo.h"
#include "bsdbackend.h"
#include "utils.h"