aboutsummaryrefslogtreecommitdiffstats
path: root/lib/events.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-10-09 11:41:19 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-10-09 11:41:19 -0700
commit619770237590e4a760346f2e12681d7e2220dda4 (patch)
tree8d0d391407280ab74e1fc876d6f272110b474897 /lib/events.h
parent23b29c67968f3dd39e7d6970acc5669556f4c8b9 (diff)
parent27b407fde1844a0e03f1a9d92d2a1c4a40435f9b (diff)
Merging OTR branch. It's more or less a plugin if you enable it, and
otherwise a no-op. DO NOT INSTALL THIS ON PUBLIC SERVERS.
Diffstat (limited to 'lib/events.h')
-rw-r--r--lib/events.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/events.h b/lib/events.h
index fa30cf27..66c4c6b4 100644
--- a/lib/events.h
+++ b/lib/events.h
@@ -80,10 +80,8 @@ G_MODULE_EXPORT gint b_input_add(int fd, b_input_condition cond, b_event_handler
G_MODULE_EXPORT gint b_timeout_add(gint timeout, b_event_handler func, gpointer data);
G_MODULE_EXPORT void b_event_remove(gint id);
-/* For now, closesocket() is only a function when using libevent. With GLib
- it's a preprocessor macro. */
-#ifdef EVENTS_LIBEVENT
+/* With libevent, this one also cleans up event handlers if that wasn't already
+ done (the caller is expected to do so but may miss it sometimes). */
G_MODULE_EXPORT void closesocket(int fd);
-#endif
#endif /* _EVENTS_H_ */