[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] libevent-2.0.18-stable.tar.gz can not build on win32
On Mar 28, 2012, at 4:41 PM, Savg He wrote:
> My build environment: win xp of sp3 + visual c + + 2005 command line:
>
>
> C:\Documents and Settings\qs\My Documents\Downloads\Compressed\libevent-2.0.18-s
> table>nmake /f Makefile.nmake
Can you see if this patch fixes the problem for you?
diff --git a/evutil.c b/evutil.c
index 4fa3754..f3a2ed6 100644
--- a/evutil.c
+++ b/evutil.c
@@ -97,6 +97,7 @@
#define close _close
#define fstat _fstati64
#define stat _stati64
+#define int mode_t
#endif
int
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.