diff options
-rw-r--r-- | gl/lib/randread.c | 2 | ||||
-rw-r--r-- | gl/modules/randread | 1 |
2 files changed, 2 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 diff --git a/gl/modules/randread b/gl/modules/randread index 1c4a9051c..33485c5ab 100644 --- a/gl/modules/randread +++ b/gl/modules/randread @@ -14,6 +14,7 @@ inline fopen-safer gettimeofday quotearg +stdalign stdbool stdint unlocked-io |