diff options
Diffstat (limited to 'gl/lib/randread.c')
-rw-r--r-- | gl/lib/randread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gl/lib/randread.c b/gl/lib/randread.c index a75d9f623..b2a3ce6e4 100644 --- a/gl/lib/randread.c +++ b/gl/lib/randread.c @@ -29,6 +29,7 @@ #include <exitfail.h> #include <fcntl.h> #include <quotearg.h> +#include <stdalign.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> @@ -62,7 +63,6 @@ #if _STRING_ARCH_unaligned # define ALIGNED_POINTER(ptr, type) true #else -# define alignof(type) offsetof (struct { char c; type x; }, x) # define ALIGNED_POINTER(ptr, type) ((size_t) (ptr) % alignof (type) == 0) #endif |