More windows SFTP fixes
This commit is contained in:
parent
8c5fe1c7e4
commit
14176bc092
4
Makefile
4
Makefile
@ -8,7 +8,7 @@ PROGRAM_SRC = $(wildcard src/*.cpp src/widgets/*.cpp)
|
||||
PROGRAM = build/Tyro
|
||||
PROGRAM_OBJECTS = $(patsubst %.cpp,%.o, $(PROGRAM_SRC))
|
||||
|
||||
BASE_FLAGS = -DSCI_LEXER
|
||||
BASE_FLAGS = -DSCI_LEXER
|
||||
|
||||
LDLIBS = $(TARGET) $(shell wx-config --libs base core aui stc adv) -lssh2
|
||||
WX_CXXFLAGS = $(shell wx-config --cxxflags) $(BASE_FLAGS)
|
||||
@ -25,7 +25,7 @@ dev: all
|
||||
build:
|
||||
@mkdir -p build
|
||||
|
||||
$(TARGET): CXXFLAGS += -fPIC
|
||||
#$(TARGET): CXXFLAGS +=
|
||||
$(TARGET): $(OBJECTS)
|
||||
ar rcs $@ $(OBJECTS)
|
||||
ranlib $@
|
||||
|
@ -14,6 +14,8 @@
|
||||
#include <cstring>
|
||||
|
||||
#ifdef WIN32
|
||||
// Define this so I actually get functions out of the windows header file
|
||||
#define _WIN32_WINNT 0x0501
|
||||
#include <Ws2tcpip.h>
|
||||
#else
|
||||
#include <sys/socket.h>
|
||||
|
Loading…
Reference in New Issue
Block a user