opnsense-ports/sysutils/mtpfs/files/patch-mtpfs.h
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

31 lines
940 B
C

--- mtpfs.h 2012-02-23 20:37:14.000000000 -0800
+++ mtpfs.h 2012-12-12 19:10:01.055523958 -0800
@@ -18,7 +18,9 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
-#include <sys/statfs.h>
+#include <sys/param.h>
+#include <sys/mount.h>
+#include <sys/statvfs.h>
#include <libmtp.h>
#include <glib.h>
@@ -49,7 +51,7 @@
/* fuse functions */
-static void * mtpfs_init (void);
+static void * mtpfs_init (struct fuse_conn_info *);
static int mtpfs_blank ();
static int mtpfs_release (const char *path, struct fuse_file_info *fi);
void mtpfs_destroy ();
@@ -62,7 +64,7 @@
static int mtpfs_unlink (const gchar * path);
static int mtpfs_mkdir (const char *path, mode_t mode);
static int mtpfs_rmdir (const char *path);
-static int mtpfs_statfs (const char *path, struct statfs *stbuf);
+static int mtpfs_statfs (const char *path, struct statvfs *stbuf);
int calc_length(int f);
static LIBMTP_mtpdevice_t *device;