From 2051e47399f2f31e9cbc08928952748e5e673c56 Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-T772REH\\wangyu" Date: Mon, 4 Jun 2018 11:52:33 +0800 Subject: [PATCH] port to cygwin --- common.h | 2 +- log.h | 2 +- makefile | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/common.h b/common.h index 4aa5521..2a9d7ff 100644 --- a/common.h +++ b/common.h @@ -26,7 +26,7 @@ #include //Provides declarations for tcp header #include #include //Provides declarations for ip header -#include +//#include #include #include #include diff --git a/log.h b/log.h index b97acd0..37e290d 100755 --- a/log.h +++ b/log.h @@ -28,7 +28,7 @@ #include //Provides declarations for tcp header #include #include //Provides declarations for ip header -#include +//#include #include #include #include diff --git a/makefile b/makefile index 1dcf610..5b2674e 100755 --- a/makefile +++ b/makefile @@ -17,7 +17,11 @@ TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/speederv2_\1/g'` all:git_version rm -f ${NAME} - ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 + ${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}