mirror of
https://github.com/mirror/wget.git
synced 2025-02-03 08:10:11 +08:00
[svn] Use Windows timers under Cygwin.
This commit is contained in:
parent
89b218e02f
commit
603375697b
@ -1,3 +1,8 @@
|
|||||||
|
2005-04-08 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* ptimer.c: Use Windows timers under Cygwin, whose POSIX timer
|
||||||
|
implementation is incomplete.
|
||||||
|
|
||||||
2005-04-08 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-04-08 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* ptimer.c (struct ptimer): Remove the unused initialized field.
|
* ptimer.c (struct ptimer): Remove the unused initialized field.
|
||||||
|
@ -66,6 +66,13 @@ so, delete this exception statement from your version. */
|
|||||||
#endif
|
#endif
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
/* Cygwin currently (as of 2005-04-08, Cygwin 1.5.14) lack clock_getres,
|
||||||
|
but still define _POSIX_TIMERS! Because of that we simply use the
|
||||||
|
Windows timers under Cygwin. */
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
# include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wget.h"
|
#include "wget.h"
|
||||||
#include "ptimer.h"
|
#include "ptimer.h"
|
||||||
|
|
||||||
@ -82,7 +89,7 @@ extern int errno;
|
|||||||
#undef PTIMER_TIME
|
#undef PTIMER_TIME
|
||||||
#undef PTIMER_WINDOWS
|
#undef PTIMER_WINDOWS
|
||||||
|
|
||||||
#ifdef WINDOWS
|
#if defined(WINDOWS) || defined(__CYGWIN__)
|
||||||
# define PTIMER_WINDOWS /* use Windows timers */
|
# define PTIMER_WINDOWS /* use Windows timers */
|
||||||
#else
|
#else
|
||||||
# if _POSIX_TIMERS > 0
|
# if _POSIX_TIMERS > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user