nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c7df5
)
libevent: fix compatibility with light FFI and global/semi-global
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 18 Oct 2016 20:18:55 +0000
(16:18 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 18 Oct 2016 20:18:55 +0000
(16:18 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/libevent.nit
patch
|
blob
|
history
diff --git
a/lib/libevent.nit
b/lib/libevent.nit
index
39b9316
..
0468fbc
100644
(file)
--- a/
lib/libevent.nit
+++ b/
lib/libevent.nit
@@
-65,16
+65,16
@@
in "C" `{
{
ConnectionFactory_accept_connection(ctx, listener, fd, addrin, socklen);
}
+#endif
+#ifdef EventCallback_incr_ref
// Callback forwarded to 'EventCallback.callback'
static void signal_cb(evutil_socket_t fd, short events, void *data)
{
EventCallback handler = data;
EventCallback_callback(handler, events);
}
-
#endif
-
`}
# Structure to hold information and state for a Libevent dispatch loop.