diff options
author | Karel Zak <kzak@redhat.com> | 2024-04-02 08:47:34 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2024-04-02 08:47:34 +0200 |
commit | f92ed3aa66bbd1df5156f8aa16723c9245265625 (patch) | |
tree | 41a112b4a437e6bc727e58651d724f312c72af21 | |
parent | 2722b40012740372daf3585b7c071fcbede13359 (diff) | |
parent | 2c5a42b3cbf278461a12872ce7a944ad396d47b5 (diff) | |
download | util-linux-f92ed3aa66bbd1df5156f8aa16723c9245265625.tar.gz |
Merge branch 'meson-detect-mempcpy' of https://github.com/jwillikers/util-linux
* 'meson-detect-mempcpy' of https://github.com/jwillikers/util-linux:
meson: Fix false positive detection of mempcpy on macOS
-rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 91726da86d..38e25185bf 100644 --- a/meson.build +++ b/meson.build @@ -569,7 +569,6 @@ funcs = ''' llistxattr llseek newlocale - mempcpy mkostemp move_mount mount_setattr @@ -634,6 +633,9 @@ foreach func: funcs conf.set('HAVE_' + func.to_upper(), have ? 1 : false) endforeach +have_mempcpy = cc.has_function('mempcpy', prefix: '#include <string.h>', args: '-D_GNU_SOURCE') +conf.set('HAVE_MEMPCPY', have_mempcpy ? 1 : false) + have = conf.get('HAVE_FUTIMENS') in [1] and conf.get('HAVE_INOTIFY_INIT1') in [1] conf.set('AGETTY_RELOAD', have ? 1 : false) if not have |