X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ft-server.cpp;h=e91049bcdb3a541118a5917621faf15bf2629d53;hb=d119ba229b6c9257c4efb634bf7425d6595196ff;hp=a264ddf632e1a05856ceb2108253adb7f035d415;hpb=7247137cb7c4aca0a67cfd2f0f814067c2bec4c8;p=yazproxy-moved-to-github.git diff --git a/src/t-server.cpp b/src/t-server.cpp index a264ddf..e91049b 100644 --- a/src/t-server.cpp +++ b/src/t-server.cpp @@ -1,8 +1,8 @@ /* - * Copyright (c) 1998-2005, Index Data. + * Copyright (c) 2005, Index Data. * See the file LICENSE for details. * - * $Id: t-server.cpp,v 1.5 2005-09-26 09:24:14 adam Exp $ + * $Id: t-server.cpp,v 1.9 2006-03-30 14:19:19 adam Exp $ */ #include @@ -11,10 +11,15 @@ #include #include #include "msg-thread.h" -#include -#include -#include -#include +#include +#include +#include +#include +#include + +#if HAVE_UNISTD_H +#include +#endif using namespace yazpp_1; @@ -63,7 +68,9 @@ IMsg_Thread *Auth_Msg::handle() ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_present); break; case Z_APDU_searchRequest: +#if HAVE_UNISTD_H sleep(5); +#endif apdu = zget_APDU(odr, Z_APDU_searchResponse); break; case Z_APDU_triggerResourceControlRequest: