Port: Add bt_common_get_page_size
[babeltrace.git] / plugins / ctf / fs-src / fs.c
index 0e199e92e773fbc165af731c6c2e9b28a532e9db..bcb3302657c71c3206652e35d5840a502d84ed3f 100644 (file)
@@ -42,7 +42,6 @@
 #include <assert.h>
 #include <inttypes.h>
 #include <stdbool.h>
-#include <unistd.h>
 #include "fs.h"
 #include "metadata.h"
 #include "data-stream-file.h"
@@ -1277,7 +1276,7 @@ struct ctf_fs_component *ctf_fs_create(struct bt_private_component *priv_comp,
        }
 
        ctf_fs->error_fp = stderr;
-       ctf_fs->page_size = (size_t) getpagesize();
+       ctf_fs->page_size = bt_common_get_page_size();
        ctf_fs->port_data = g_ptr_array_new_with_free_func(port_data_destroy);
        if (!ctf_fs->port_data) {
                goto error;
This page took 0.024401 seconds and 4 git commands to generate.