diff options
Diffstat (limited to 'apps/nc')
-rw-r--r-- | apps/nc/CMakeLists.txt | 8 | ||||
-rw-r--r-- | apps/nc/Makefile.am | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt index e873de8..bd59211 100644 --- a/apps/nc/CMakeLists.txt +++ b/apps/nc/CMakeLists.txt | |||
@@ -29,14 +29,6 @@ else() | |||
29 | set(NC_SRC ${NC_SRC} compat/readpassphrase.c) | 29 | set(NC_SRC ${NC_SRC} compat/readpassphrase.c) |
30 | endif() | 30 | endif() |
31 | 31 | ||
32 | check_function_exists(strtonum HAVE_STRTONUM) | ||
33 | if(HAVE_STRTONUM AND CMAKE_SYSTEM_NAME MATCHES "Darwin" AND | ||
34 | CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20) | ||
35 | add_definitions(-DHAVE_STRTONUM) | ||
36 | else() | ||
37 | set(NC_SRC ${NC_SRC} compat/strtonum.c) | ||
38 | endif() | ||
39 | |||
40 | if(NOT "${OPENSSLDIR}" STREQUAL "") | 32 | if(NOT "${OPENSSLDIR}" STREQUAL "") |
41 | add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\") | 33 | add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\") |
42 | else() | 34 | else() |
diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am index 58b5c01..e9db6e5 100644 --- a/apps/nc/Makefile.am +++ b/apps/nc/Makefile.am | |||
@@ -43,8 +43,4 @@ if !HAVE_READPASSPHRASE | |||
43 | nc_SOURCES += compat/readpassphrase.c | 43 | nc_SOURCES += compat/readpassphrase.c |
44 | endif | 44 | endif |
45 | 45 | ||
46 | if !HAVE_STRTONUM | ||
47 | nc_SOURCES += compat/strtonum.c | ||
48 | endif | ||
49 | |||
50 | endif | 46 | endif |