From 72f382e6f8b72dee4259f384a200b2f3e8fa77b5 Mon Sep 17 00:00:00 2001 From: Active Volcano Date: Wed, 20 Mar 2024 23:16:55 +0800 Subject: [PATCH 1/5] make under Linux Cent OS 7 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e668360da..5db71012c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ SET(CMAKE_PROJECT_HOMEPAGE_URL "http://gmssl.org") set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) SET(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") +SET(CMAKE_C_FLAGS "-std=c99") include_directories(include) From 7ca10e36dbae0f993d3ede1f4fe5708d7831d911 Mon Sep 17 00:00:00 2001 From: Active Volcano Date: Wed, 20 Mar 2024 23:18:13 +0800 Subject: [PATCH 2/5] make under Linux Cent OS 7 --- tools/tlcp_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tlcp_client.c b/tools/tlcp_client.c index 6380ad4c7..93717ac3c 100644 --- a/tools/tlcp_client.c +++ b/tools/tlcp_client.c @@ -15,6 +15,9 @@ #include #include #include +#ifndef WIN32 + #include +#endif #define TIMEOUT_SECONDS 1 From 4ff488dc69334dafb395762a35d19eb9b10881cf Mon Sep 17 00:00:00 2001 From: Active Volcano Date: Wed, 20 Mar 2024 23:18:58 +0800 Subject: [PATCH 3/5] make under Linux Cent OS 7 --- tools/tls12_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tls12_client.c b/tools/tls12_client.c index af51ed8f1..5645bdeb5 100644 --- a/tools/tls12_client.c +++ b/tools/tls12_client.c @@ -14,6 +14,9 @@ #include #include #include +#ifndef WIN32 + #include +#endif // TLSv1.2客户单和TLCP客户端可能没有什么区别 From 22e36db77f58f222e7d91651bb845a09240117c9 Mon Sep 17 00:00:00 2001 From: Active Volcano Date: Wed, 20 Mar 2024 23:19:42 +0800 Subject: [PATCH 4/5] make under Linux Cent OS 7 --- tools/tls13_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tls13_client.c b/tools/tls13_client.c index 03d63e77a..f2f9b1c44 100644 --- a/tools/tls13_client.c +++ b/tools/tls13_client.c @@ -14,6 +14,9 @@ #include #include #include +#ifndef WIN32 + #include +#endif // TLSv1.2客户单和TLCP客户端可能没有什么区别 From a22166ef476c30f055b8653315d93d97d41588b4 Mon Sep 17 00:00:00 2001 From: Active Volcano Date: Tue, 2 Apr 2024 10:25:02 +0800 Subject: [PATCH 5/5] make under Linux Cent OS 7 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abd3a5dfd..3f16508f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ SET(CMAKE_PROJECT_HOMEPAGE_URL "http://gmssl.org") set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) SET(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") -SET(CMAKE_C_FLAGS "-std=c99") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") include_directories(include)