/*
* Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: LGPL-2.1-only
*
*/
if (!lttng_directory_handle_uses_fd(new_handle)) {
ret = ENOTSUP;
} else {
-#ifdef COMPAT_DIRFD
+#ifdef HAVE_DIRFD
*out_fds = new_handle->dirfd;
#else
abort();
return ret;
}
-#ifdef COMPAT_DIRFD
+#ifdef HAVE_DIRFD
static
int fd_close(void *unused, int *in_fds)
{
}
new_handle = open_args.ret_handle;
-#ifdef COMPAT_DIRFD
+#ifdef HAVE_DIRFD
new_handle->destroy_cb = directory_handle_destroy;
new_handle->destroy_cb_data = tracker;
#endif