Skip to content

Commit 1ca3fa4

Browse files
committed
build BUGFIX vasprintf detection on BSD
1 parent 89fff91 commit 1ca3fa4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeModules/UseCompat.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ macro(USE_COMPAT)
77
# compatibility checks
88
set(CMAKE_REQUIRED_DEFINITIONS -D_POSIX_C_SOURCE=200809L)
99
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
10+
list(APPEND CMAKE_REQUIRED_DEFINITIONS -D__BSD_VISIBLE=1)
1011
check_symbol_exists(vdprintf "stdio.h;stdarg.h" HAVE_VDPRINTF)
1112
check_symbol_exists(asprintf "stdio.h" HAVE_ASPRINTF)
1213
check_symbol_exists(vasprintf "stdio.h" HAVE_VASPRINTF)

0 commit comments

Comments
 (0)