diff options
Diffstat (limited to 'apps/nc')
-rw-r--r-- | apps/nc/CMakeLists.txt | 3 |
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() | |||
30 | endif() | 30 | endif() |
31 | 31 | ||
32 | check_function_exists(strtonum HAVE_STRTONUM) | 32 | check_function_exists(strtonum HAVE_STRTONUM) |
33 | if(HAVE_STRTONUM) | 33 | if(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) |
35 | else() | 36 | else() |
36 | set(NC_SRC ${NC_SRC} compat/strtonum.c) | 37 | set(NC_SRC ${NC_SRC} compat/strtonum.c) |