Another attempt at measuring the minimum alignment for a system.
[rsync/rsync.git] / lib / pool_alloc.c
index 9f65b88..c5648b6 100644 (file)
@@ -32,7 +32,12 @@ struct pool_extent
        struct pool_extent      *next;
 };
 
-#define MINALIGN       (sizeof (long))
+struct align_test {
+    void *foo;
+    uint64 bar;
+};
+
+#define MINALIGN       offsetof(struct align_test, bar)
 
 alloc_pool_t
 pool_create(size_t size, size_t quantum,