X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Ft-server.cpp;h=e91049bcdb3a541118a5917621faf15bf2629d53;hp=3a4acef6f5fed68ad6cfa752a489473594c8b218;hb=2687af689ae79c5a823e28e0ecb3429106df1caa;hpb=8dc6d0bc4ddbb2d37b3aafd93396a0e4a8e87560 diff --git a/src/t-server.cpp b/src/t-server.cpp index 3a4acef..e91049b 100644 --- a/src/t-server.cpp +++ b/src/t-server.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2005, Index Data. * See the file LICENSE for details. * - * $Id: t-server.cpp,v 1.8 2006-03-29 13:33:47 adam Exp $ + * $Id: t-server.cpp,v 1.9 2006-03-30 14:19:19 adam Exp $ */ #include @@ -17,6 +17,10 @@ #include #include +#if HAVE_UNISTD_H +#include +#endif + using namespace yazpp_1; class MyServer; @@ -64,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: