port to cygwin

This commit is contained in:
U-DESKTOP-T772REH\wangyu 2018-06-04 11:52:33 +08:00
parent 36f55b7e22
commit 2051e47399
3 changed files with 7 additions and 3 deletions

View File

@ -26,7 +26,7 @@
#include <netinet/tcp.h> //Provides declarations for tcp header
#include <netinet/udp.h>
#include <netinet/ip.h> //Provides declarations for ip header
#include <netinet/if_ether.h>
//#include <netinet/if_ether.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <arpa/inet.h>

2
log.h
View File

@ -28,7 +28,7 @@
#include <netinet/tcp.h> //Provides declarations for tcp header
#include <netinet/udp.h>
#include <netinet/ip.h> //Provides declarations for ip header
#include <netinet/if_ether.h>
//#include <netinet/if_ether.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/socket.h>

View File

@ -19,6 +19,10 @@ all:git_version
rm -f ${NAME}
${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3
cygwin:git_version
rm -f ${NAME}
${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 -D_GNU_SOURCE
mac:git_version
rm -f ${NAME}
${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -ggdb -O3 -Wno-c++17-compat-mangling