aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-05-09 18:49:45 +0200
committerMattias Andrée <maandree@kth.se>2017-05-09 18:49:45 +0200
commit305ab92c7f697f1198c928b26e852b8d9fb2be71 (patch)
tree04517fd2a79ca0ef758d314946204d7f7af5a365 /src
parentFix bug in readall, thanks to Jean-Louis Fuchs (diff)
downloadblind-305ab92c7f697f1198c928b26e852b8d9fb2be71.tar.gz
blind-305ab92c7f697f1198c928b26e852b8d9fb2be71.tar.bz2
blind-305ab92c7f697f1198c928b26e852b8d9fb2be71.tar.xz
Add padding to struct stream
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/stream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h
index 280dde1..238f026 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -1,4 +1,5 @@
/* See LICENSE file for copyright and license details. */
+#include <limits.h>
#include <stddef.h>
#include <stdio.h>
@@ -45,6 +46,9 @@ struct stream {
size_t pixel_size;
char pixfmt[32];
int fd;
+#if INT_MAX != LONG_MAX
+ int padding__;
+#endif
size_t ptr;
size_t xptr;
char buf[BUFSIZ];