From d88ec138dda4683660f20b1398ce2d4dfd6c5b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:09:09 +0800 Subject: [PATCH] fix pthread --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d38ca98..59c33c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,8 +14,8 @@ include_directories("/usr/local/include") link_directories("/usr/local/lib") #在编译选项中加入c99支持 -add_compile_options(-std=c99) -message(STATUS "optional:-std=c99") +add_compile_options(-std=gnu99) +message(STATUS "optional:-std=gnu99") add_executable(simple-dict-server server.c dict.c crypto.c) add_executable(simple-dict-client client.c crypto.c)