aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-01-31 10:00:48 -0600
committerBrent Cook <busterb@gmail.com>2019-01-31 13:56:56 -0600
commit5269dbb2792fe5baf239e13f36352142364e1581 (patch)
treea6e612ebf2c0d2afb8235fbd8b90d420bf186c9e
parenta6d7ea956290470254e817adb2f6a3fac9397a17 (diff)
downloadportable-5269dbb2792fe5baf239e13f36352142364e1581.tar.gz
portable-5269dbb2792fe5baf239e13f36352142364e1581.tar.bz2
portable-5269dbb2792fe5baf239e13f36352142364e1581.zip
update cmake
-rw-r--r--CMakeLists.txt15
-rw-r--r--crypto/CMakeLists.txt12
-rw-r--r--tls/CMakeLists.txt1
3 files changed, 27 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 46e01ae..4d54ada 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -237,6 +237,21 @@ if(HAVE_GETPAGESIZE)
237 add_definitions(-DHAVE_GETPAGESIZE) 237 add_definitions(-DHAVE_GETPAGESIZE)
238endif() 238endif()
239 239
240check_function_exists(getprogname HAVE_GETPROGNAME)
241if(HAVE_GETPROGNAME)
242 add_definitions(-DHAVE_GETPROGNAME)
243endif()
244
245check_function_exists(syslog_r HAVE_SYSLOG_R)
246if(HAVE_SYSLOG_R)
247 add_definitions(-DHAVE_SYSLOG_R)
248endif()
249
250check_function_exists(syslog HAVE_SYSLOG)
251if(HAVE_SYSLOG)
252 add_definitions(-DHAVE_SYSLOG)
253endif()
254
240check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB) 255check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB)
241if(HAVE_TIMESPECSUB) 256if(HAVE_TIMESPECSUB)
242 add_definitions(-DHAVE_TIMESPECSUB) 257 add_definitions(-DHAVE_TIMESPECSUB)
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index a81d329..b7ce131 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -807,6 +807,14 @@ if(NOT HAVE_GETPAGESIZE)
807 set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c) 807 set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c)
808endif() 808endif()
809 809
810if(NOT HAVE_GETPROGNAME)
811 if(WIN32)
812 set(CRYPTO_SRC ${CRYPTO_SRC} compat/getprogname_windows.c)
813 elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
814 set(CRYPTO_SRC ${CRYPTO_SRC} compat/getprogname_linux.c)
815 endif()
816endif()
817
810if(NOT HAVE_REALLOCARRAY) 818if(NOT HAVE_REALLOCARRAY)
811 set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c) 819 set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c)
812 set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray) 820 set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray)
@@ -846,6 +854,10 @@ if(NOT HAVE_STRSEP)
846 set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep) 854 set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep)
847endif() 855endif()
848 856
857if(NOT HAVE_SYSLOG_R)
858 set(CRYPTO_SRC ${CRYPTO_SRC} compat/syslog_r.c)
859endif()
860
849if(NOT HAVE_TIMEGM) 861if(NOT HAVE_TIMEGM)
850 set(CRYPTO_SRC ${CRYPTO_SRC} compat/timegm.c) 862 set(CRYPTO_SRC ${CRYPTO_SRC} compat/timegm.c)
851 set(EXTRA_EXPORT ${EXTRA_EXPORT} timegm) 863 set(EXTRA_EXPORT ${EXTRA_EXPORT} timegm)
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt
index 337e89b..94803ce 100644
--- a/tls/CMakeLists.txt
+++ b/tls/CMakeLists.txt
@@ -18,7 +18,6 @@ if(WIN32)
18 TLS_SRC 18 TLS_SRC
19 ${TLS_SRC} 19 ${TLS_SRC}
20 compat/ftruncate.c 20 compat/ftruncate.c
21 compat/getuid.c
22 compat/pread.c 21 compat/pread.c
23 compat/pwrite.c 22 compat/pwrite.c
24 ) 23 )