projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Add compat for dirfd
[babeltrace.git]
/
converter
/
babeltrace-log.c
diff --git
a/converter/babeltrace-log.c
b/converter/babeltrace-log.c
index b724ccd67ebd5aecbb26d671d2e858e2d978b533..55eabf2d1e39015910b4e1c1991627f51205c7ae 100644
(file)
--- a/
converter/babeltrace-log.c
+++ b/
converter/babeltrace-log.c
@@
-34,7
+34,7
@@
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.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>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@
-415,7
+415,7
@@
int main(int argc, char **argv)
perror("opendir");
goto error_rmdir;
}
perror("opendir");
goto error_rmdir;
}
- dir_fd = dirfd(dir);
+ dir_fd =
bt_
dirfd(dir);
if (dir_fd < 0) {
perror("dirfd");
goto error_closedir;
if (dir_fd < 0) {
perror("dirfd");
goto error_closedir;
This page took
0.02252 seconds
and
4
git commands to generate.