Skip to content

Commit

Permalink
Fix cygwin build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Feb 22, 2016
1 parent ebba95d commit 7995c84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion dokan_fuse/CMakelists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.4)

project (dokanfuse1)

set(CMAKE_LEGACY_CYGWIN_WIN32 0)

set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

Expand Down
2 changes: 2 additions & 0 deletions dokan_fuse/src/fuse_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <errno.h>

#ifdef __CYGWIN__
#define _BSD_SOURCE
#include <unistd.h>
#include <semaphore.h>
#endif

Expand Down
5 changes: 1 addition & 4 deletions samples/fuse_mirror/fusexmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,10 @@ static int xmp_symlink(const char *from, const char *to)
return 0;
}

static int xmp_rename(const char *from, const char *to, unsigned int flags)
static int xmp_rename(const char *from, const char *to)
{
int res;

if (flags)
return -EINVAL;

res = rename(from, to);
if (res == -1)
return -errno;
Expand Down

0 comments on commit 7995c84

Please sign in to comment.