update cmake
This commit is contained in:
parent
a6d7ea9562
commit
5269dbb279
@ -237,6 +237,21 @@ if(HAVE_GETPAGESIZE)
|
|||||||
add_definitions(-DHAVE_GETPAGESIZE)
|
add_definitions(-DHAVE_GETPAGESIZE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
check_function_exists(getprogname HAVE_GETPROGNAME)
|
||||||
|
if(HAVE_GETPROGNAME)
|
||||||
|
add_definitions(-DHAVE_GETPROGNAME)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
check_function_exists(syslog_r HAVE_SYSLOG_R)
|
||||||
|
if(HAVE_SYSLOG_R)
|
||||||
|
add_definitions(-DHAVE_SYSLOG_R)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
check_function_exists(syslog HAVE_SYSLOG)
|
||||||
|
if(HAVE_SYSLOG)
|
||||||
|
add_definitions(-DHAVE_SYSLOG)
|
||||||
|
endif()
|
||||||
|
|
||||||
check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB)
|
check_symbol_exists(timespecsub sys/time.h HAVE_TIMESPECSUB)
|
||||||
if(HAVE_TIMESPECSUB)
|
if(HAVE_TIMESPECSUB)
|
||||||
add_definitions(-DHAVE_TIMESPECSUB)
|
add_definitions(-DHAVE_TIMESPECSUB)
|
||||||
|
@ -807,6 +807,14 @@ if(NOT HAVE_GETPAGESIZE)
|
|||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c)
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getpagesize.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT HAVE_GETPROGNAME)
|
||||||
|
if(WIN32)
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getprogname_windows.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/getprogname_linux.c)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT HAVE_REALLOCARRAY)
|
if(NOT HAVE_REALLOCARRAY)
|
||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c)
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/reallocarray.c)
|
||||||
set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray)
|
set(EXTRA_EXPORT ${EXTRA_EXPORT} reallocarray)
|
||||||
@ -846,6 +854,10 @@ if(NOT HAVE_STRSEP)
|
|||||||
set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep)
|
set(EXTRA_EXPORT ${EXTRA_EXPORT} strsep)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT HAVE_SYSLOG_R)
|
||||||
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/syslog_r.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT HAVE_TIMEGM)
|
if(NOT HAVE_TIMEGM)
|
||||||
set(CRYPTO_SRC ${CRYPTO_SRC} compat/timegm.c)
|
set(CRYPTO_SRC ${CRYPTO_SRC} compat/timegm.c)
|
||||||
set(EXTRA_EXPORT ${EXTRA_EXPORT} timegm)
|
set(EXTRA_EXPORT ${EXTRA_EXPORT} timegm)
|
||||||
|
@ -18,7 +18,6 @@ if(WIN32)
|
|||||||
TLS_SRC
|
TLS_SRC
|
||||||
${TLS_SRC}
|
${TLS_SRC}
|
||||||
compat/ftruncate.c
|
compat/ftruncate.c
|
||||||
compat/getuid.c
|
|
||||||
compat/pread.c
|
compat/pread.c
|
||||||
compat/pwrite.c
|
compat/pwrite.c
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user