aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/shm.h b/shm.h
index 6637182c..d67b3567 100644
--- a/shm.h
+++ b/shm.h
@@ -2,6 +2,7 @@
#include <stdbool.h>
#include <stddef.h>
+#include <sys/types.h>
#include <pixman.h>
#include <wayland-client.h>
@@ -24,7 +25,7 @@ struct buffer {
int fd; /* memfd */
void *real_mmapped; /* Address returned from mmap */
size_t mmap_size; /* Size of mmap (>= size) */
- size_t offset; /* Offset into memfd where data begins */
+ off_t offset; /* Offset into memfd where data begins */
bool purge; /* True if this buffer should be destroyed */
};