Browse Source

Prevent "undefined symbol: ev_rt_now" link errors in third-party modules.

Fixes #1181.
v0.7.4-release
Ben Noordhuis 14 years ago
committed by Bert Belder
parent
commit
c95da949ec
  1. 6
      deps/uv/ev/ev.c
  2. 8
      deps/uv/ev/ev.h

6
deps/uv/ev/ev.c

@ -730,6 +730,12 @@ typedef struct
#else #else
ev_tstamp ev_rt_now; ev_tstamp ev_rt_now;
ev_tstamp ev_now (void)
{
return ev_rt_now;
}
#define VAR(name,decl) static decl; #define VAR(name,decl) static decl;
#include "ev_vars.h" #include "ev_vars.h"
#undef VAR #undef VAR

8
deps/uv/ev/ev.h

@ -561,13 +561,7 @@ ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after
int ev_default_loop (unsigned int flags EV_CPP (= 0)); /* returns true when successful */ int ev_default_loop (unsigned int flags EV_CPP (= 0)); /* returns true when successful */
EV_INLINE ev_tstamp ev_tstamp ev_now (void);
ev_now (void)
{
extern ev_tstamp ev_rt_now;
return ev_rt_now;
}
/* looks weird, but ev_is_default_loop (EV_A) still works if this exists */ /* looks weird, but ev_is_default_loop (EV_A) still works if this exists */
EV_INLINE int EV_INLINE int

Loading…
Cancel
Save