*
*/
-#include <common/compat/fcntl.hpp>
#include <common/defaults.hpp>
#include <common/error.hpp>
#include <common/payload-view.hpp>
#include <lttng/constant.h>
#include <algorithm>
+#include <fcntl.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
for (i = 0; i < fd_count; i++) {
struct fd_handle *handle;
- int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
+ const int fd = fcntl(STDOUT_FILENO, F_DUPFD, 0);
if (fd < 0) {
PERROR("Failed to create fd while creating test payload");