More windows SFTP fixes

This commit is contained in:
Timothy Warren 2015-04-14 13:49:06 -04:00
parent 8c5fe1c7e4
commit 14176bc092
2 changed files with 4 additions and 2 deletions

View File

@ -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 $@

View File

@ -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>