Deprecated log.h and created a new ylog.h
[yaz-moved-to-github.git] / client / client.c
index 116c34c..be42824 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1995-2004, Index Data
  * See the file LICENSE for details.
  *
- * $Id: client.c,v 1.253 2004-10-12 13:23:46 ja7 Exp $
+ * $Id: client.c,v 1.256 2004-11-18 15:18:10 heikki Exp $
  */
 
 #include <stdio.h>
@@ -51,6 +51,7 @@
 #include <yaz/srw.h>
 #include <yaz/yaz-ccl.h>
 #include <yaz/cql.h>
+#include <yaz/ylog.h>
 
 #if HAVE_READLINE_READLINE_H
 #include <readline/readline.h>
@@ -3714,8 +3715,12 @@ int cmd_sleep(const char* args )
 {
     int sec=atoi(args);
     if( sec > 0 ) {
+#ifdef WIN32
+       Sleep(sec*1000);
+#else
        sleep(sec);
-       printf("Done sleeping %d secunds\n", sec);      
+#endif
+       printf("Done sleeping %d seconds\n", sec);      
     }
     return 1;    
 }