mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Use posix_fallocate when available
This commit is contained in:
parent
ef0a6ea4d2
commit
e02c486b60
2 changed files with 25 additions and 23 deletions
|
|
@ -130,6 +130,10 @@ else
|
|||
exclude_headers += 'xwayland.h'
|
||||
endif
|
||||
|
||||
if cc.has_header_symbol('fcntl.h', 'posix_fallocate', prefix: '#define _POSIX_C_SOURCE 200112L')
|
||||
conf_data.set('WLR_HAS_POSIX_FALLOCATE', true)
|
||||
endif
|
||||
|
||||
includedir = get_option('includedir')
|
||||
exclude_headers += 'meson.build'
|
||||
install_subdir('include/wlr', install_dir: includedir, exclude_files: exclude_headers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue