aboutsummaryrefslogtreecommitdiff
path: root/apps/nc
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nc')
-rw-r--r--apps/nc/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt
index f21c869..a241637 100644
--- a/apps/nc/CMakeLists.txt
+++ b/apps/nc/CMakeLists.txt
@@ -30,7 +30,8 @@ else()
30endif() 30endif()
31 31
32check_function_exists(strtonum HAVE_STRTONUM) 32check_function_exists(strtonum HAVE_STRTONUM)
33if(HAVE_STRTONUM) 33if(HAVE_STRTONUM AND CMAKE_SYSTEM_NAME MATCHES "Darwin" AND
34 CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20)
34 add_definitions(-DHAVE_STRTONUM) 35 add_definitions(-DHAVE_STRTONUM)
35else() 36else()
36 set(NC_SRC ${NC_SRC} compat/strtonum.c) 37 set(NC_SRC ${NC_SRC} compat/strtonum.c)