Cleanup: autoconf 'dirfd' detection
[lttng-tools.git] / src / common / fd-tracker / utils.c
index fe2cdcc4ed4f84f1c629e27c630964d25d10f377..85d28b29468208ef34f595bd18bcd769ebaac0a9 100644 (file)
@@ -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.022907 seconds and 4 git commands to generate.