X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.c;h=649e6de11b2c0f4c0a02d4efb6693e3b90228fcb;hb=60a702f390f7e2addfdab79f2328db3ba2897c8b;hp=0f5873263b08954c33531bf290f5c7d746f56d06;hpb=f4c095a042b1bcccb78136be87944e46412386aa;p=yaz-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index 0f58732..649e6de 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: eventl.c,v 1.4 2004-12-13 14:21:55 heikki 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; }