diff --git a/include/villas/sample.h b/include/villas/sample.h index 3d2099251..bc5e30de2 100644 --- a/include/villas/sample.h +++ b/include/villas/sample.h @@ -29,11 +29,11 @@ extern "C" { #endif +#include #include #include #include #include -#include /* Forward declarations */ struct pool; @@ -81,7 +81,7 @@ struct sample { struct node *source; /**< The node from which this sample originates. */ atomic_int refcnt; /**< Reference counter. */ - off_t pool_off; /**< This sample belongs to this memory pool (relative pointer). See sample_pool(). */ + ptrdiff_t pool_off; /**< This sample belongs to this memory pool (relative pointer). See sample_pool(). */ /** A long bitfield indicating the number representation of the first 64 values in sample::data[]. *