Florian Riedl wrote:

> We have just released rsyslog 5.6.1, the new v5-stable.

I'm attaching a patch needed to build on Linux systems which lack
epoll_create1().

BTW, can you use libevent[1] for things like epoll? It gives you a
portable API and supports more systems.

[1] http://monkey.org/~provos/libevent/

-- 
 .-.   .-.    Yes, I am an agent of Satan, but my duties are largely
(_  \ /  _)   ceremonial.
     |
     |        [email protected]
--- plugins/imptcp/imptcp.c.orig	2010-11-29 11:55:27.000000000 +0100
+++ plugins/imptcp/imptcp.c	2010-11-29 11:57:33.000000000 +0100
@@ -35,6 +35,8 @@
 	/* imptcp gains speed by using modern Linux capabilities. As such,
 	 * it can only be build on platforms supporting the epoll API.
 	 */
+#else
+#define	NUM_EPOLL_EVENTS 10
 #endif
 
 #include <stdio.h>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to