Port: Include config.h globally trough DEFAULT_INCLUDES
[babeltrace.git] / converter / babeltrace-log.c
index b724ccd67ebd5aecbb26d671d2e858e2d978b533..210bd09152a11b03907300c4c9b807abbad77983 100644 (file)
  * Depends on glibc 2.10 for getline().
  */
 
-#define _GNU_SOURCE
-#include <config.h>
 #include <sys/types.h>
 #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 +413,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.023132 seconds and 4 git commands to generate.