Hi again.

would you mind in mean time to include
user interface of kqueue directly into squid ?

With attached patch it builds and runs with "--enable-kqueue".

Thanks for considering it.

Petr

--- src/comm_kqueue.c~  2006-07-12 10:44:07.000000000 +0200
+++ src/comm_kqueue.c   2006-07-12 10:44:07.000000000 +0200
@@ -39,6 +39,24 @@
 #include <sys/event.h>
 #endif
 
+#if defined (__FreeBSD_kernel__) && defined (__GLIBC__)
+#include <sys/syscall.h>
+
+int     kqueue(void)
+{
+       return syscall(SYS_kqueue); 
+};
+
+int     kevent(int kq, struct kevent *changelist, int nchanges,
+               struct kevent *eventlist, int nevents,
+                const struct timespec *timeout)
+{
+
+       return syscall(SYS_kevent, kq, changelist, nchanges,
+                       eventlist, nevents, timeout);           
+};
+#endif                        
+
 #define KE_LENGTH       128
 #define STATE_READ      1
 #define STATE_WRITE     2

Reply via email to