소스 검색

Fix build error for some configurations

bel2125 4 년 전
부모
커밋
c2b5cc8c79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);