X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.c;h=649e6de11b2c0f4c0a02d4efb6693e3b90228fcb;hb=60a702f390f7e2addfdab79f2328db3ba2897c8b;hp=dbe72d48b9f0bc41c786caa74e8658a9a2a8d892;hpb=4c176312acdc3444c9afc820f76a393e64668e52;p=yaz-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index dbe72d4..649e6de 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: eventl.c,v 1.5 2005-01-15 19:47:13 adam Exp $ + * $Id: eventl.c,v 1.7 2005-02-01 14:46:47 adam Exp $ */ /** @@ -13,16 +13,27 @@ * Server. It uses select(2). */ -#include #include +#include +#include +#include +#include + +#if HAVE_SYS_TYPES_H +#include +#endif +#if HAVE_SYS_TIME_H +#include +#endif #ifdef WIN32 #include -#else +#endif +#if HAVE_UNISTD_H #include #endif -#include -#include -#include +#if HAVE_SYS_SELECT_H +#include +#endif #include #include @@ -44,7 +55,7 @@ static int log_level=0; static int log_level_initialized=0; -IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags) +IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, int port) { IOCHAN new_iochan; @@ -63,6 +74,7 @@ IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags) new_iochan->force_event = 0; new_iochan->last_event = new_iochan->max_idle = 0; new_iochan->next = NULL; + new_iochan->port = port; return new_iochan; }