Relicence all source and header files included in LGPL code
[lttng-tools.git] / src / common / fd-tracker / utils.c
index fe2cdcc4ed4f84f1c629e27c630964d25d10f377..844586ecab7069226bb555bb71be58a661f7ff2e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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
  *
  */
 
@@ -101,7 +101,7 @@ int open_directory_handle(void *_args, int *out_fds)
        if (!lttng_directory_handle_uses_fd(new_handle)) {
                ret = ENOTSUP;
        } else {
-#ifdef COMPAT_DIRFD
+#ifdef HAVE_DIRFD
                *out_fds = new_handle->dirfd;
 #else
                abort();
@@ -112,7 +112,7 @@ end:
        return ret;
 }
 
-#ifdef COMPAT_DIRFD
+#ifdef HAVE_DIRFD
 static
 int fd_close(void *unused, int *in_fds)
 {
@@ -182,7 +182,7 @@ struct lttng_directory_handle *fd_tracker_create_directory_handle_from_handle(
        }
        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
This page took 0.027765 seconds and 4 git commands to generate.