Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions HFuse.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ Library
Build-Depends: base >= 4 && < 5, unix, bytestring
exposed-Modules: System.Fuse
Extensions: ForeignFunctionInterface ScopedTypeVariables EmptyDataDecls
Includes: sys/statfs.h, dirent.h, fuse.h, fcntl.h
Includes: dirent.h, fuse.h, fcntl.h
if os(freebsd) {
Includes: sys/param.h, sys/mount.h
CC-Options: -Df_namelen=f_namemax
} else {
Includes: sys/statfs.h
}
Include-Dirs: /usr/include, /usr/local/include, .
Extra-Libraries: fuse
Extra-Lib-Dirs: /usr/local/lib
CC-Options: -D_FILE_OFFSET_BITS=64
CC-Options: -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
if os(darwin) {
CC-Options: "-DMACFUSE"
}
Expand Down
4 changes: 1 addition & 3 deletions System/Fuse.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ import qualified System.IO.Error as IO(catch,ioeGetErrorString)
-- TODO: implement binding to fuse_invalidate
-- TODO: bind fuse_*xattr

#define FUSE_USE_VERSION 26

#ifdef MACFUSE
#if defined MACFUSE || defined __FreeBSD__
#include <sys/mount.h>
#else
#include <sys/statfs.h>
Expand Down