From 482c6dba5db896d06099737e8a75be6a3949b492 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Thu, 29 Apr 2004 22:19:27 +0000 Subject: added Sleep for win32 on apache 1.3 --- mod_log_sql.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod_log_sql.c b/mod_log_sql.c index 0ba1bf6..6a80ece 100644 --- a/mod_log_sql.c +++ b/mod_log_sql.c @@ -548,6 +548,9 @@ static logsql_query_ret safe_sql_insert(request_rec *r, logsql_tabletype table_t # if defined(WITH_APACHE20) apr_sleep(apr_time_from_sec(0.25)); /* pause for a quarter second */ # elif defined(WITH_APACHE13) +# if defined(WIN32) + Sleep((DWORD)0.25); +# else { struct timespec delay, remainder; int nanoret; @@ -558,6 +561,7 @@ static logsql_query_ret safe_sql_insert(request_rec *r, logsql_tabletype table_t log_error(APLOG_MARK,APLOG_ERR, errno, r->server,"nanosleep unsuccessful"); } } +# endif /* win32 */ # endif result = global_config.driver->insert(r,&global_config.db,query); if (result == LOGSQL_QUERY_SUCCESS) { -- cgit