Skip to content

Commit c09b218

Browse files
author
d3x0r
committed
Some linux fixes that have missed merging
1 parent 472f0f2 commit c09b218

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

linux_win32_x64_toolchain.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ SET(CMAKE_SYSTEM_VERSION 7)
88
set( TARGET_TOOL_PREFIX x86_64 )
99
#set( TARGET_TOOL_PREFIX i686 )
1010

11-
SET(TARGET_CC /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-gcc )
12-
SET(TARGET_CXX /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-g++ )
13-
#SET(TARGET_CC /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-gcc -static-libgcc -static)
14-
#SET(TARGET_CXX /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-g++ -static-libgcc -static)
11+
#SET(TARGET_CC /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-gcc )
12+
#SET(TARGET_CXX /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-g++ )
13+
SET(TARGET_CC /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-gcc -static-libstdc++ -static-libgcc -static)
14+
SET(TARGET_CXX /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-g++ -static-libstdc++ -static-libgcc -static)
1515
SET( TARGET_RC /usr/bin/${TARGET_TOOL_PREFIX}-w64-mingw32-windres )
1616
SET( CMAKE_RC_COMPILER_INIT ${TARGET_RC} )
1717
SET( CMAKE_RC_COMPILER ${TARGET_RC} )

src/utils/virtual_file_system/fuse_private.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ static struct fuse_private_local
2020
struct fuse_chan* mount;
2121
struct fuse_session *session;
2222
CTEXTSTR private_mount_point;
23-
pid_t myself;
23+
pid_t myself;
2424
struct directory_entry zero_entkey;
2525
uint8_t zerokey[BLOCK_SIZE];
2626
uid_t uid;
27-
gid_t gid;
27+
gid_t gid;
2828
#ifdef BUILD_TEST
29-
struct volume *volume;
29+
struct volume *volume;
3030
PTHREAD main;
3131
#endif
3232
} fpl;
@@ -39,23 +39,23 @@ static int doStat(fuse_ino_t ino, struct stat *attr, double *timeout)
3939
lprintf( "request attr %ld", ino );
4040
memset( attr, 0, sizeof( *attr ) );
4141
attr->st_dev = 1;
42-
attr->st_nlink = 1;
42+
attr->st_nlink = 1;
4343
attr->st_ino = ino;
4444
attr->st_uid = fpl.uid;
4545
attr->st_gid = fpl.gid;
4646
attr->st_size = 1234;
4747
attr->st_blocks = 4321;
4848
attr->st_blksize = 1;
49-
if( fpl.volume->read_only )
49+
if( fpl.volume->read_only )
5050
if( ino == 1 ) {
5151
attr->st_mode = S_IFDIR | 0500;
52-
(*timeout) = 10000.0;
52+
(*timeout) = 10000.0;
5353
}
5454
else {
5555
attr->st_mode = S_IFREG | 0400;
56-
(*timeout) = 1.0;
56+
(*timeout) = 1.0;
5757
}
58-
else
58+
else
5959
if( ino == 1 ) {
6060
attr->st_mode = S_IFDIR | 0700;
6161
(*timeout) = 10000.0;
@@ -156,7 +156,7 @@ static void DumpDirectory( struct volume *vol, fuse_req_t req, struct dirbuf *b
156156
do
157157
{
158158
next_entries = BTSEEK( struct directory_entry *, vol, this_dir_block, BLOCK_CACHE_DIRECTORY );
159-
for( n = 0; n < ENTRIES; n++ )
159+
for( n = 0; n < VFS_DIRECTORY_ENTRIES; n++ )
160160
{
161161
struct directory_entry *entkey = ( vol->key )?((struct directory_entry *)vol->usekey[BLOCK_CACHE_DIRECTORY])+n:&fpl.zero_entkey;
162162
FPI name_ofs = next_entries[n].name_offset ^ entkey->name_offset;

0 commit comments

Comments
 (0)