Mercurial > hg > orthanc-postgresql
changeset 141:60d920613610
fixes for freebsd
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Aug 2017 19:46:31 +0200 (2017-08-23) |
parents | 2b4bc54f9627 |
children | b93b4039cee8 |
files | Resources/CMake/PostgreSQLConfiguration.cmake |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/PostgreSQLConfiguration.cmake Wed Aug 23 19:41:42 2017 +0200 +++ b/Resources/CMake/PostgreSQLConfiguration.cmake Wed Aug 23 19:46:31 2017 +0200 @@ -150,7 +150,8 @@ file(READ ${CMAKE_SOURCE_DIR}/Resources/Platforms/printf_archetype.c SOURCE) check_c_source_compiles("${SOURCE}" printf_archetype) - if (printf_archetype) + if (printf_archetype AND + NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") set(PG_PRINTF_ATTRIBUTE "gnu_printf") else() set(PG_PRINTF_ATTRIBUTE "printf") @@ -159,6 +160,7 @@ check_function_exists("unsetenv" HAVE_UNSETENV) check_function_exists("getaddrinfo" HAVE_GETADDRINFO) check_function_exists("gettimeofday" HAVE_GETTIMEOFDAY) + check_function_exists("srandom" HAVE_SRANDOM) check_type_size("struct addrinfo" SIZE_STRUCT_ADDRINFO) if (HAVE_SIZE_STRUCT_ADDRINFO)