Package: owfs / 2.9p8-6

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
23
24
25
Better support for FreeBSD
--- a/module/owfs/src/c/owfs.c
+++ b/module/owfs/src/c/owfs.c
@@ -17,6 +17,9 @@
 
 #include "owfs.h"
 #include "ow_connection.h"
+#ifdef __FreeBSD_kernel__
+#include "sys/param.h"
+#endif
 #include "sys/mount.h"
 
 /*
@@ -129,7 +132,11 @@
 
 	// Unmount just in case
 	// No checks -- can fail without consequences
+#ifdef __FreeBSD_kernel__
+	unmount( Outbound_Control.head->name, 0);
+#else
 	umount( Outbound_Control.head->name ) ;
+#endif
 
 	Fuse_parse(fuse_mnt_opt, &fuse_options);
 	LEVEL_DEBUG("fuse_mnt_opt=[%s]", fuse_mnt_opt);