diff options
author | Jim Meyering <meyering@redhat.com> | 2011-10-30 22:31:17 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-10-30 22:38:47 +0100 |
commit | 50424fe2a5325b17d294a0bd740df17fd21eb520 (patch) | |
tree | 2e0470de06d603b87b5a67614cb48bdce3d7baca | |
parent | 53f48c7b0e4e574a73f5a649f938a0b537489d34 (diff) | |
download | coreutils-50424fe2a5325b17d294a0bd740df17fd21eb520.tar.xz |
maint: avoid new "make syntax-check" failure due to stdalign definition
* gl/modules/randread (Depends-on): Add stdalign.
* gl/lib/randread.c: Include <stdalign.h>, so we can ...
[!_STRING_ARCH_unaligned]: remove definition of stdalign.
-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 |