Explorar o código

Fix build error for some configurations

bel2125 %!s(int64=4) %!d(string=hai) anos
pai
achega
c2b5cc8c79
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -6697,7 +6697,7 @@ handle_request_stat_log(struct mg_connection *conn)
 #if defined(USE_SERVER_STATS)
 	conn->conn_state = 5; /* processed */
 
-	mg_clock_gettime(CLOCK_MONOTONIC, &tnow);
+	clock_gettime(CLOCK_MONOTONIC, &tnow);
 	conn->processing_time = mg_difftimespec(&tnow, &(conn->req_time));
 
 	mg_atomic_add64(&(conn->phys_ctx->total_data_read), conn->consumed_content);