Lines 1-22
Link Here
|
1 |
--- mtpfs.h.orig Sun Jul 1 11:45:49 2007 |
1 |
--- mtpfs.h.orig 2009-01-04 03:03:56.000000000 +0800 |
2 |
+++ mtpfs.h Sun Jul 1 11:46:22 2007 |
2 |
+++ mtpfs.h 2009-01-04 03:05:16.000000000 +0800 |
3 |
@@ -18,7 +18,9 @@ |
3 |
@@ -18,8 +18,9 @@ |
4 |
#include <fcntl.h> |
4 |
#include <fcntl.h> |
5 |
#include <dirent.h> |
5 |
#include <dirent.h> |
6 |
#include <errno.h> |
6 |
#include <errno.h> |
7 |
-#include <sys/statfs.h> |
7 |
-#include <sys/statfs.h> |
|
|
8 |
- |
8 |
+#include <sys/param.h> |
9 |
+#include <sys/param.h> |
9 |
+#include <sys/mount.h> |
10 |
+#include <sys/mount.h> |
10 |
+#include <sys/statvfs.h> |
11 |
+#include <sys/statvfs.h> |
11 |
|
|
|
12 |
#include <libmtp.h> |
12 |
#include <libmtp.h> |
13 |
#include <glib.h> |
13 |
#include <glib.h> |
14 |
@@ -48,7 +50,7 @@ |
14 |
#include <id3tag.h> |
|
|
15 |
@@ -49,7 +50,7 @@ |
15 |
static int mtpfs_unlink (const gchar * path); |
16 |
static int mtpfs_unlink (const gchar * path); |
16 |
static int mtpfs_mkdir (const char *path, mode_t mode); |
17 |
static int mtpfs_mkdir (const char *path, mode_t mode); |
17 |
static int mtpfs_rmdir (const char *path); |
18 |
static int mtpfs_rmdir (const char *path); |
18 |
-static int mtpfs_statfs (const char *path, struct statfs *stbuf); |
19 |
-static int mtpfs_statfs (const char *path, struct statfs *stbuf); |
19 |
+static int mtpfs_statfs (const char *path, struct statvfs *stbuf); |
20 |
+static int mtpfs_statfs (const char *path, struct statvfs *stbuf); |
|
|
21 |
int calc_length(int f); |
20 |
|
22 |
|
21 |
|
23 |
|
22 |
static LIBMTP_mtpdevice_t *device; |
|
|