* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <common/compat/fcntl.h>
+#include <common/macros.h>
+#include <unistd.h>
#ifdef __linux__
+LTTNG_HIDDEN
int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
unsigned int flags)
{