mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-27 19:33:06 -04:00
fallocate() is only visible in fcntl.h if _GNU_SOURCE is defined. Most users of libglnx will want to do that anyway, but it seems nicer to avoid "implicit declaration of function ‘fallocate’" warnings from simply including <libglnx.h> into naive code. Signed-off-by: Simon McVittie <smcv@collabora.com>
This is a simple example of a project that uses libglnx as a subproject. The intention is that if this project can successfully build and use libglnx as a subproject, then so could Flatpak. <!-- Copyright 2022 Collabora Ltd. SPDX-License-Identifier: LGPL-2.0-or-later -->