mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-31 00:03:08 +03:00
example: fix strdup() for MSVC compiles
MSVC has a _strdup() that we better use. This was reported in bug
This commit is contained in:
@ -32,6 +32,11 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) && !defined(__GNUC__)
|
||||
/* plain MSVC setups have no normal strdup */
|
||||
#define strdup _strdup
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
Reference in New Issue
Block a user