X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent-fields.c;h=aa7475d0952722512636af701237ba68a361a81c;hp=1092dc314d9d8ac08ab39476f39a5afcd1f16daa;hb=a323afb2c1147130155340f0858466d406729310;hpb=a2bc83d4c971d0f9a491fa518a7b5d4e0ea25ceb diff --git a/formats/ctf/ir/event-fields.c b/formats/ctf/ir/event-fields.c index 1092dc31..aa7475d0 100644 --- a/formats/ctf/ir/event-fields.c +++ b/formats/ctf/ir/event-fields.c @@ -32,6 +32,7 @@ #include #include #include +#include #define PACKET_LEN_INCREMENT (getpagesize() * 8 * CHAR_BIT) @@ -2170,7 +2171,7 @@ int increase_packet_size(struct ctf_stream_pos *pos) } pos->packet_size += PACKET_LEN_INCREMENT; - ret = posix_fallocate(pos->fd, pos->mmap_offset, + ret = bt_posix_fallocate(pos->fd, pos->mmap_offset, pos->packet_size / CHAR_BIT); if (ret) { goto end;