More windows SFTP fixes
This commit is contained in:
parent
8c5fe1c7e4
commit
14176bc092
2
Makefile
2
Makefile
@ -25,7 +25,7 @@ dev: all
|
|||||||
build:
|
build:
|
||||||
@mkdir -p build
|
@mkdir -p build
|
||||||
|
|
||||||
$(TARGET): CXXFLAGS += -fPIC
|
#$(TARGET): CXXFLAGS +=
|
||||||
$(TARGET): $(OBJECTS)
|
$(TARGET): $(OBJECTS)
|
||||||
ar rcs $@ $(OBJECTS)
|
ar rcs $@ $(OBJECTS)
|
||||||
ranlib $@
|
ranlib $@
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
// Define this so I actually get functions out of the windows header file
|
||||||
|
#define _WIN32_WINNT 0x0501
|
||||||
#include <Ws2tcpip.h>
|
#include <Ws2tcpip.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user