Get main.c to compile when HAVE_USLEEP is 0. (CVS 4245)

FossilOrigin-Name: b27f022fb924709f1c5e4642d5d59cab942e826d
diff --git a/src/main.c b/src/main.c
index 9db08c4..a0a7cc6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
 ** other files are for internal use by SQLite and should not be
 ** accessed by users of the library.
 **
-** $Id: main.c,v 1.385 2007/08/18 10:59:20 danielk1977 Exp $
+** $Id: main.c,v 1.386 2007/08/20 11:12:41 drh Exp $
 */
 #include "sqliteInt.h"
 #include "os.h"
@@ -323,11 +323,12 @@
   sqlite3OsSleep(db->pVfs, delay);
   return 1;
 #else
+  sqlite3 *db = (sqlite3 *)ptr;
   int timeout = ((sqlite3 *)ptr)->busyTimeout;
   if( (count+1)*1000 > timeout ){
     return 0;
   }
-  sqlite3OsSleep(1000);
+  sqlite3OsSleep(db->pVfs, 1000000);
   return 1;
 #endif
 }