diff options
author | Gleb Popov <6yearold@gmail.com> | 2025-06-24 09:12:54 +0300 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-06-25 13:04:59 +0200 |
commit | 596732dd06f7737e4a4c050773f88c8d36fd9b61 (patch) | |
tree | ea5a447b41d6938dc81760090a743e02796240ba /meson.build | |
parent | 1016d1665ab0d8914171943fadfe85ed2f8e12ba (diff) | |
download | libfuse-596732dd06f7737e4a4c050773f88c8d36fd9b61.tar.gz |
meson: Check for some Linux-specific headers
Signed-off-by: Gleb Popov <6yearold@gmail.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build index b663109..910a075 100644 --- a/meson.build +++ b/meson.build @@ -112,6 +112,13 @@ foreach name, code : special_funcs name: name + ' check')) endforeach +# Headers checks +test_headers = [ 'sys/xattr.h', 'linux/limits.h' ] +foreach header : test_headers + private_cfg.set('HAVE_' + header.underscorify().to_upper(), + cc.has_header(header)) +endforeach + # Regular function checks private_cfg.set('HAVE_SETXATTR', cc.has_function('setxattr', prefix: '#include <sys/xattr.h>')) |