Package: owfs / 3.2p3+dfsg1-2

for-upstream-freebsd.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix for BSD architecture (the mount syscall has one more parameter)
--- a/module/owfs/src/c/owfs.c
+++ b/module/owfs/src/c/owfs.c
@@ -16,6 +16,9 @@
 
 #include "owfs.h"
 #include "ow_connection.h"
+#ifdef __FreeBSD_kernel__
+#include "sys/param.h"
+#endif
 #include "sys/mount.h"
 
 /*
@@ -127,7 +130,7 @@
 
 	// Unmount just in case
 	// No checks -- can fail without consequences
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
 	unmount( Outbound_Control.head->name, 0) ;
 #else
 	umount( Outbound_Control.head->name ) ;