summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-05-08 14:43:09 +0000
committerNick Mathewson <nickm@torproject.org>2008-05-08 14:43:09 +0000
commita673c2c9011ffc694d1f8719d0f78f3d5dd4a02e (patch)
tree151f0ecad1860ca3b348e5df0f2035518c9386fb
parentff6cbd06cff83a7db6a105f7dcc53d08af9d2d5b (diff)
downloadlibevent-a673c2c9011ffc694d1f8719d0f78f3d5dd4a02e.tar.gz
add missing header under win32 to evutil.c. remove misc.obj[ch] from vcproj file.
svn:r796
-rw-r--r--WIN32-Prj/libevent.vcproj26
-rw-r--r--evutil.c3
2 files changed, 3 insertions, 26 deletions
diff --git a/WIN32-Prj/libevent.vcproj b/WIN32-Prj/libevent.vcproj
index f69730cc..b2f6757e 100644
--- a/WIN32-Prj/libevent.vcproj
+++ b/WIN32-Prj/libevent.vcproj
@@ -246,28 +246,6 @@
</FileConfiguration>
</File>
<File
- RelativePath="..\WIN32-Code\misc.c"
- >
- <FileConfiguration
- Name="Debug|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- />
- </FileConfiguration>
- <FileConfiguration
- Name="Release|Win32"
- >
- <Tool
- Name="VCCLCompilerTool"
- AdditionalIncludeDirectories=""
- PreprocessorDefinitions=""
- />
- </FileConfiguration>
- </File>
- <File
RelativePath="..\signal.c"
>
</File>
@@ -351,10 +329,6 @@
>
</File>
<File
- RelativePath="..\WIN32-Code\misc.h"
- >
- </File>
- <File
RelativePath="..\strlcpy-internal.h"
>
</File>
diff --git a/evutil.c b/evutil.c
index 4f0fa8e3..40da826c 100644
--- a/evutil.c
+++ b/evutil.c
@@ -49,6 +49,9 @@
#include <stdlib.h>
#endif
#include <errno.h>
+#if defined WIN32 && !defined(HAVE_GETTIMEOFDAY_H)
+#include <sys/timeb.h>
+#endif
#include "evutil.h"
#include "log.h"