File: 8c3541c6bb652c45922ed50b21e0ab086af9ea8f.patch

package info (click to toggle)
asymptote 3.02%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 33,400 kB
  • sloc: cpp: 172,516; ansic: 69,728; python: 14,967; sh: 5,599; javascript: 4,866; lisp: 1,507; perl: 1,417; makefile: 1,028; yacc: 610; lex: 449; xml: 182; asm: 8
file content (35 lines) | stat: -rw-r--r-- 1,227 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 8c3541c6bb652c45922ed50b21e0ab086af9ea8f Mon Sep 17 00:00:00 2001
From: kuafu <731784510@qq.com>
Date: Wed, 5 Mar 2025 22:48:35 +0800
Subject: [PATCH] 1.try to fixed https://github.com/kuafuwang/LspCpp/issues/57

---
 include/LibLsp/lsp/ParentProcessWatcher.h | 1 +
 include/LibLsp/lsp/lru_cache.h            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/LibLsp/lsp/ParentProcessWatcher.h b/include/LibLsp/lsp/ParentProcessWatcher.h
index 96d6f67..77fb31e 100644
--- a/LspCpp/include/LibLsp/lsp/ParentProcessWatcher.h
+++ b/LspCpp/include/LibLsp/lsp/ParentProcessWatcher.h
@@ -2,6 +2,7 @@
 
 #include "LibLsp/JsonRpc/MessageIssue.h"
 #include <memory>
+#include <cstdint>
 
 class ParentProcessWatcher
 {
diff --git a/include/LibLsp/lsp/lru_cache.h b/include/LibLsp/lsp/lru_cache.h
index c942491..72b0a5a 100644
--- a/LspCpp/include/LibLsp/lsp/lru_cache.h
+++ b/LspCpp/include/LibLsp/lsp/lru_cache.h
@@ -5,7 +5,7 @@
 #include <limits>
 #include <memory>
 #include <vector>
-
+#include <cstdint>
 // Cache that evicts old entries which have not been used recently. Implemented
 // using array/linear search so this works well for small array sizes.
 template<typename TKey, typename TValue>