Ver Fonte

Fix build error for some configurations

bel2125 há 4 anos atrás
pai
commit
c2b5cc8c79
1 ficheiros alterados com 1 adições e 1 exclusões
  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);