summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-04-29 22:19:27 +0000
committerGravatar Edward Rudd 2004-04-29 22:19:27 +0000
commit482c6dba5db896d06099737e8a75be6a3949b492 (patch)
tree9fe5b4c1375275e9fb1b6c8d54eb435d01045765
parent87b590e56963dc318e8cf944d1f6ef978a0d03cc (diff)
added Sleep for win32 on apache 1.3
-rw-r--r--mod_log_sql.c4
1 files changed, 4 insertions, 0 deletions
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
548# if defined(WITH_APACHE20) 548# if defined(WITH_APACHE20)
549 apr_sleep(apr_time_from_sec(0.25)); /* pause for a quarter second */ 549 apr_sleep(apr_time_from_sec(0.25)); /* pause for a quarter second */
550# elif defined(WITH_APACHE13) 550# elif defined(WITH_APACHE13)
551# if defined(WIN32)
552 Sleep((DWORD)0.25);
553# else
551 { 554 {
552 struct timespec delay, remainder; 555 struct timespec delay, remainder;
553 int nanoret; 556 int nanoret;
@@ -558,6 +561,7 @@ static logsql_query_ret safe_sql_insert(request_rec *r, logsql_tabletype table_t
558 log_error(APLOG_MARK,APLOG_ERR, errno, r->server,"nanosleep unsuccessful"); 561 log_error(APLOG_MARK,APLOG_ERR, errno, r->server,"nanosleep unsuccessful");
559 } 562 }
560 } 563 }
564# endif /* win32 */
561# endif 565# endif
562 result = global_config.driver->insert(r,&global_config.db,query); 566 result = global_config.driver->insert(r,&global_config.db,query);
563 if (result == LOGSQL_QUERY_SUCCESS) { 567 if (result == LOGSQL_QUERY_SUCCESS) {