From 248554843822b6c7c32732e88c7751d1c2a920ac Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 4 Jan 2013 09:44:22 +0800 Subject: [PATCH] enable to be compiled in cygwin --- configure.ac | 2 +- local.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 05c46e21..1e38aa0f 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.68]) -AC_INIT([libev-hello], [0.1], [clowwindy42@gmail.com]) +AC_INIT([shadowsocks], [0.9], [clowwindy42@gmail.com|max.c.lv@gmail.com]) AC_CONFIG_SRCDIR([encrypt.c]) AC_CONFIG_HEADERS([config.h]) diff --git a/local.c b/local.c index dd50e9ee..a475c220 100644 --- a/local.c +++ b/local.c @@ -29,6 +29,10 @@ #define MSG_NOSIGNAL MSG_HAVEMORE #endif +#ifndef EAGAIN +#define EAGAIN EWOULDBLOCK +#endif + #define min(a,b) (((a)<(b))?(a):(b)) static char *_server;