Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
8c585936
Commit
8c585936
authored
Sep 20, 2014
by
Daniel Cohen Gindi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just use a macro to bridge to the Win32 version of `mkdir`
The additional compat_mkdir function was not necessary at all.
parent
741a1844
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
rfbserver.c
libvncserver/rfbserver.c
+6
-5
No files found.
libvncserver/rfbserver.c
View file @
8c585936
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
#endif
#endif
#ifdef WIN32
#ifdef WIN32
#include <io.h>
#define write(sock,buf,len) send(sock,buf,len,0)
#define write(sock,buf,len) send(sock,buf,len,0)
#else
#else
#ifdef LIBVNCSERVER_HAVE_UNISTD_H
#ifdef LIBVNCSERVER_HAVE_UNISTD_H
...
@@ -90,12 +91,12 @@
...
@@ -90,12 +91,12 @@
#define strdup _strdup
#define strdup _strdup
#endif
#endif
#ifdef WIN32
#ifdef __MINGW32__
#ifdef __MINGW32__
static
int
compat_mkdir
(
const
char
*
path
,
int
mode
)
#define mkdir(path, perms) mkdir(path)
/* Omit the perms argument to match POSIX signature */
{
#else
/* MSVC and other windows compilers */
return
mkdir
(
path
);
#define mkdir(path, perms) _mkdir(path)
/* Omit the perms argument to match POSIX signature */
}
#endif
/* __MINGW32__ else... */
#define mkdir compat_mkdir
#endif
#endif
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment