ports/devel/p5-Event-Lib/files/patch-Lib.xs
Jan Beich fd9083eb52 devel/p5-Event-Lib: unbreak after r433286
- Add a patch to compile with libevent 2.1 (only compile-tested!) after
  https://github.com/libevent/libevent/commit/cba59e53253b
- Reformat an existing patch through "make makepatch"
- Drop maintainership as the current maintainer no longer uses the
  port and wishes to resign

PR:		216531
Submitted by:	Fabian Keil <fk@fabiankeil.de> (maintainer)
2017-02-10 15:42:09 +00:00

14 lines
384 B
Text

--- Lib.xs.orig 2007-07-29 11:02:37 UTC
+++ Lib.xs
@@ -125,6 +125,11 @@ void free_args (struct event_args *args)
Safefree(args);
}
+#if LIBEVENT_VERSION_NUMBER > 0x02010101
+// From event-internal.h
+#define ev_arg ev_evcallback.evcb_arg
+#endif
+
void refresh_event (struct event_args *args, char *class) {
SV *sv = newSV(0);
sv_setref_pv(sv, class, (void*)args);