Skip to content

Commit c0dfe4a

Browse files
committed
Merge branch 'js/cmake-needs-writev-compat-too' into next
* js/cmake-needs-writev-compat-too: cmake: use writev(3p) wrapper as needed
2 parents 3ed53e1 + 89152af commit c0dfe4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/buildsystems/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ endif()
376376
#function checks
377377
set(function_checks
378378
strcasestr memmem strlcpy strtoimax strtoumax strtoull
379-
setenv mkdtemp poll pread memmem)
379+
setenv mkdtemp poll pread memmem writev)
380380

381381
#unsetenv,hstrerror are incompatible with windows build
382382
if(NOT WIN32)
@@ -421,6 +421,10 @@ if(NOT HAVE_MEMMEM)
421421
list(APPEND compat_SOURCES compat/memmem.c)
422422
endif()
423423

424+
if(NOT HAVE_WRITEV)
425+
list(APPEND compat_SOURCES compat/writev.c)
426+
endif()
427+
424428
if(NOT WIN32)
425429
if(NOT HAVE_UNSETENV)
426430
list(APPEND compat_SOURCES compat/unsetenv.c)

0 commit comments

Comments
 (0)