X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=comstack%2Funix.c;h=e5cd9e58d9cfea14b64fcaa8daef24347bcfe4a6;hb=9241daf8b3104b67b2801872d0e07d6762f78b47;hp=908ab7e6b780a4b46b2118ce47ee0aa8a120b667;hpb=4d531a1a9131d69c3b6c27fbac42837e22cff61c;p=yaz-moved-to-github.git diff --git a/comstack/unix.c b/comstack/unix.c index 908ab7e..e5cd9e5 100644 --- a/comstack/unix.c +++ b/comstack/unix.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: unix.c,v 1.9 2003-01-06 08:20:27 adam Exp $ + * $Id: unix.c,v 1.11 2003-03-03 19:57:35 adam Exp $ * UNIX socket COMSTACK. By Morten Bøgeskov. */ #ifndef WIN32 @@ -22,9 +22,7 @@ #include #include #include - -/* Chas added the following, so we get the definition of completeBER */ -#include +#include #ifndef YAZ_SOCKLEN_T #define YAZ_SOCKLEN_T int @@ -140,7 +138,7 @@ COMSTACK unix_type(int s, int blocking, int protocol, void *vp) if (protocol == PROTO_WAIS) state->complete = completeWAIS; else - state->complete = completeBER; + state->complete = cs_complete_auto; p->timeout = COMSTACK_DEFAULT_TIMEOUT; TRC(fprintf(stderr, "Created new UNIX comstack\n"));