summaryrefslogtreecommitdiff
path: root/btt/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'btt/mmap.c')
-rw-r--r--btt/mmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btt/mmap.c b/btt/mmap.c
index 050d4f8..83cc708 100644
--- a/btt/mmap.c
+++ b/btt/mmap.c
@@ -28,6 +28,7 @@
#include <string.h>
#include "blktrace.h"
+#include "globals.h"
#define DEF_LEN (16 * 1024 * 1024)
@@ -102,7 +103,7 @@ void setup_ifile(char *fname)
pgsz = sysconf(_SC_PAGESIZE);
- fd = open(fname, O_RDONLY);
+ fd = my_open(fname, O_RDONLY);
if (fd < 0) {
perror(fname);
exit(1);