diff options
| author | 杨威 <[email protected]> | 2023-04-27 11:07:07 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2023-05-04 17:44:49 +0800 |
| commit | 219b474fd4ea5939c56c90086d03ece28acd21dd (patch) | |
| tree | 903f2f9451760b6b9805481c1ac089a94ca7a7f1 /src/project | |
| parent | d5889c4b1fbebb15c4a3998e87b532694d850d22 (diff) | |
🔧 build(cmakelist): 更新cmake版本要求,移除_BSD_SOURCE宏
Diffstat (limited to 'src/project')
| -rw-r--r-- | src/project/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/project/Makefile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/project/CMakeLists.txt b/src/project/CMakeLists.txt index 892dee6..7aecd8d 100644 --- a/src/project/CMakeLists.txt +++ b/src/project/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required(VERSION 2.8) -add_definitions(-D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD=1 -DHAVE_NET_ETHERNET_H) +cmake_minimum_required(VERSION 2.8...3.10) +add_definitions(-D_DEFAULT_SOURCE -D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD=1 -DHAVE_NET_ETHERNET_H) add_definitions(-DPLATFORM_NSDPF_PAPP=1) include_directories(${CMAKE_SOURCE_DIR}/include) diff --git a/src/project/Makefile b/src/project/Makefile index 7da0383..82dca3a 100644 --- a/src/project/Makefile +++ b/src/project/Makefile @@ -4,7 +4,7 @@ #CC = g++
#CCC = g++
CFLAGS += -Wall
-CFLAGS += -fPIC -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
+CFLAGS += -fPIC -D_DEFAULT_SOURCE -D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H
CFLAGS += $(OPTFLAGS)
CFLAGS += -DPLATFORM_NSDPF_PAPP=1
|
