diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-08-14 14:51:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-08-14 14:51:08 +0000 |
| commit | 6aa98f9b9fdf48933b09952f037329ef63d0d8da (patch) | |
| tree | 1ff2408f4e2fbb3b6eb9ba342f295aeb71e2021d /src/Platform.cc | |
| parent | c14c80276a587edd34462aa3544f43360b2e426d (diff) | |
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
Move sleep functions to Util class:
* src/Util.cc
(sleep): New function.
(usleep): New function.
* src/DownloadCommand.cc: sleep -> Util::sleep
* test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
MinGW build enhancements. The following files are added:
* src/timegm.{c,h}
Changes to support the above new files:
* configure.ac
* src/Makefile.am
* src/a2time.h
* src/Util.cc:
* src/strptime.c: Added support for %Z option.
Miscellenous build fixes/enhancements.
* configure.ac: Added summary report.
* src/Platform.h: Tweaked #include's.
* src/a2netcompat.h: Tweaked #include's.
* src/strptime.h: Tweaked #include's.
* src/gai_strerror.c: Tweaked #include's.
* src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
* src/getaddrinfo.h: Moved #ifndef __MINGW32__
* src/gettimeofday.h: Added HAVE_CONFIG_H
Diffstat (limited to 'src/Platform.cc')
| -rw-r--r-- | src/Platform.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Platform.cc b/src/Platform.cc index 1214f2dc..f363c6b1 100644 --- a/src/Platform.cc +++ b/src/Platform.cc @@ -38,8 +38,16 @@ #ifdef HAVE_WINSOCK2_H +#ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x501 +#endif // _WIN32_WINNT +#include <winsock2.h> +#undef ERROR +#ifdef HAVE_WS2TCPIP_H +# include <ws2tcpip.h> +#endif // HAVE_WS2TCPIP_H + #include "common.h" -#include "a2netcompat.h" #include "DlAbortEx.h" #include "Platform.h" |
