Port: Add Solaris dirent compat
[lttng-tools.git] / src / common / utils.c
index b9af7b9da4d9c189e204ad7c91c12cb08c67f4b0..e3f1bf7e62ad8109db5cbefd211f81484f02d737 100644 (file)
 #include <grp.h>
 #include <pwd.h>
 #include <sys/file.h>
-#include <dirent.h>
 
 #include <common/common.h>
 #include <common/runas.h>
 #include <common/compat/getenv.h>
 #include <common/compat/string.h>
+#include <common/compat/dirent.h>
 
 #include "utils.h"
 #include "defaults.h"
@@ -1212,9 +1212,9 @@ int utils_recursive_rmdir(const char *path)
                PERROR("Cannot open '%s' path", path);
                return -1;
        }
-       dir_fd = dirfd(dir);
+       dir_fd = lttng_dirfd(dir);
        if (dir_fd < 0) {
-               PERROR("dirfd");
+               PERROR("lttng_dirfd");
                return -1;
        }
 
This page took 0.024237 seconds and 5 git commands to generate.