Merge branch 'js/cmake-needs-writev-compat-too'

Build instruction for recently added writev() compatibility wrapper
has been also added to cmake.

* js/cmake-needs-writev-compat-too:
  cmake: use writev(3p) wrapper as needed
maint
Junio C Hamano 2026-04-03 15:24:45 -07:00
commit ac340a635d
1 changed files with 5 additions and 1 deletions

View File

@ -376,7 +376,7 @@ endif()
#function checks
set(function_checks
strcasestr memmem strlcpy strtoimax strtoumax strtoull
setenv mkdtemp poll pread memmem)
setenv mkdtemp poll pread memmem writev)

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

if(NOT HAVE_WRITEV)
list(APPEND compat_SOURCES compat/writev.c)
endif()

if(NOT WIN32)
if(NOT HAVE_UNSETENV)
list(APPEND compat_SOURCES compat/unsetenv.c)