--- cvsroot/EV/EV.xs 2009/07/14 00:09:59 1.126 +++ cvsroot/EV/EV.xs 2009/07/14 20:31:21 1.128 @@ -8,6 +8,13 @@ #include "schmorp.h" +/* old API compatibility */ +static int +sv_fileno (SV *fh) +{ + return s_fileno (fh, 0); +} + #define EV_PROTOTYPES 1 #define EV_USE_NANOSLEEP EV_USE_MONOTONIC #define EV_H @@ -391,7 +398,7 @@ /* the poor man's shared library emulator */ evapi.ver = EV_API_VERSION; evapi.rev = EV_API_REVISION; - evapi.sv_fileno = s_fileno; + evapi.sv_fileno = sv_fileno; evapi.sv_signum = s_signum; evapi.supported_backends = ev_supported_backends (); evapi.recommended_backends = ev_recommended_backends (); @@ -412,6 +419,7 @@ evapi.backend = ev_backend; evapi.unloop = ev_unloop; evapi.invoke_pending = ev_invoke_pending; + evapi.pending_count = ev_pending_count; evapi.set_loop_release_cb = ev_set_loop_release_cb; evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb; evapi.ref = ev_ref;