fix dummy_statfs
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@874 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
2b972a69ef
commit
71a1aaf38b
22
disk.c
22
disk.c
@ -113,12 +113,26 @@
|
||||
#ifndef STATFS_T
|
||||
struct dummy_statfs_t
|
||||
{
|
||||
long f_bfree = 1;
|
||||
long f_bsize = 512;
|
||||
long f_blocks = 1;
|
||||
long f_bfree;
|
||||
long f_bsize;
|
||||
long f_blocks;
|
||||
int f_namelen;
|
||||
int f_namemax;
|
||||
};
|
||||
|
||||
int dummy_statfs(struct dummy_statfs_t *buf)
|
||||
{
|
||||
buf->f_blocks=262144;
|
||||
buf->f_bfree=131072;
|
||||
buf->f_bsize=512;
|
||||
buf->f_namelen=255;
|
||||
buf->f_namemax=255;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define STATFS_T dummy_statfs_t
|
||||
#define STATFS_FN(path,buf) 0
|
||||
#define STATFS_FN(path,buf) (dummy_statfs(buf))
|
||||
#endif
|
||||
|
||||
extern RDPDR_DEVICE g_rdpdr_device[];
|
||||
|
Loading…
Reference in New Issue
Block a user