modified IOMultiplexer (added epoll & kevent support)
[TransparentIRC.git] / src / overall.h
index 7345c79e0789c8cbec527c5ad624cdf14e575a07..8c2d5276f34b41859d4cec6a75325342aaa4c150 100644 (file)
@@ -25,6 +25,8 @@
 #define IO_READ_BUFLEN 1024
 #define IO_MAX_TIMEOUT 10
 #define LINELEN 512
+#define CMDLEN 512
+#define MAXNUMPARAMS 200
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -44,6 +46,7 @@
 #include <netdb.h>
 #include <sys/wait.h>
 #include <errno.h>
+#include <fcntl.h>
 #endif
 #include <unistd.h>
 #include <getopt.h>
@@ -82,7 +85,4 @@
 #define COMPILER "Unknown"
 #endif
 
-#define timeval_is_bigger(x,y) ((x->tv_sec > y->tv_sec) || (x->tv_sec == y->tv_sec && x->tv_usec > y->tv_usec))
-#define timeval_is_smaler(x,y) ((x->tv_sec < y->tv_sec) || (x->tv_sec == y->tv_sec && x->tv_usec < y->tv_usec))
-
 #endif