From 935ee584e4611fea74402124be7bcab9f446537c Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 8 May 2018 11:41:43 +0200 Subject: [PATCH] sample: use libc ptrdiff_t instead of posix off_t --- include/villas/sample.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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[]. *