Port: Add compat for dirfd
[babeltrace.git] / converter / babeltrace-log.c
index b724ccd67ebd5aecbb26d671d2e858e2d978b533..55eabf2d1e39015910b4e1c1991627f51205c7ae 100644 (file)
@@ -34,7 +34,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/mman.h>
-#include <dirent.h>
+#include <babeltrace/compat/dirent.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
@@ -415,7 +415,7 @@ int main(int argc, char **argv)
                perror("opendir");
                goto error_rmdir;
        }
-       dir_fd = dirfd(dir);
+       dir_fd = bt_dirfd(dir);
        if (dir_fd < 0) {
                perror("dirfd");
                goto error_closedir;
This page took 0.023616 seconds and 4 git commands to generate.