Browse Source

[build] check for mempcpy()

master
Glenn Strauss 8 months ago
parent
commit
82fbfcba15
  1. 1
      SConstruct
  2. 1
      configure.ac
  3. 1
      src/CMakeLists.txt
  4. 1
      src/meson.build

1
SConstruct

@ -427,6 +427,7 @@ if 1:
'localtime_r',
'lstat',
'madvise',
'mempcpy',
'memset_s',
'memset',
'mmap',

1
configure.ac

@ -1498,6 +1498,7 @@ AC_CHECK_FUNCS([\
localtime_r \
lstat \
madvise \
mempcpy \
memset \
memset_s \
mmap \

1
src/CMakeLists.txt

@ -169,6 +169,7 @@ check_function_exists(localtime_r HAVE_LOCALTIME_R)
check_function_exists(lstat HAVE_LSTAT)
check_function_exists(madvise HAVE_MADVISE)
check_function_exists(memcpy HAVE_MEMCPY)
check_function_exists(mempcpy HAVE_MEMPCPY)
check_function_exists(memset HAVE_MEMSET)
check_function_exists(mmap HAVE_MMAP)
check_function_exists(pathconf HAVE_PATHCONF)

1
src/meson.build

@ -123,6 +123,7 @@ conf_data.set('HAVE_LOCALTIME_R', compiler.has_function('localtime_r', args: def
conf_data.set('HAVE_LSTAT', compiler.has_function('lstat', args: defs))
conf_data.set('HAVE_MADVISE', compiler.has_function('madvise', args: defs))
conf_data.set('HAVE_MEMCPY', compiler.has_function('memcpy', args: defs))
conf_data.set('HAVE_MEMPCPY', compiler.has_function('mempcpy', args: defs))
conf_data.set('HAVE_MEMSET', compiler.has_function('memset', args: defs))
conf_data.set('HAVE_MMAP', compiler.has_function('mmap', args: defs))
conf_data.set('HAVE_PATHCONF', compiler.has_function('pathconf', args: defs))

Loading…
Cancel
Save