changeset 29914:a043c6d372db

osutil: fix the declaration to work on different sizes of off_t
author Maciej Fijalkowski <fijall@gmail.com>
date Thu, 08 Sep 2016 10:37:58 +0200
parents b60a5fe98b73
children b3ec902b2f3c
files setup_osutil_cffi.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/setup_osutil_cffi.py	Wed Aug 31 12:46:53 2016 -0700
+++ b/setup_osutil_cffi.py	Thu Sep 08 10:37:58 2016 +0200
@@ -45,6 +45,8 @@
     ...;
 } attrreference_t;
 
+typedef int ... off_t;
+
 typedef struct val_attrs {
     uint32_t          length;
     attribute_set_t   returned;
@@ -52,14 +54,13 @@
     uint32_t          obj_type;
     struct timespec   mtime;
     uint32_t          accessmask;
-    int               datalength;
+    off_t             datalength;
     ...;
 } val_attrs_t;
 
 /* the exact layout of the above struct will be figured out during build time */
 
 typedef int ... time_t;
-typedef int ... off_t;
 
 typedef struct timespec {
     time_t tv_sec;