summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-10-30 22:31:17 +0100
committerJim Meyering <meyering@redhat.com>2011-10-30 22:38:47 +0100
commit50424fe2a5325b17d294a0bd740df17fd21eb520 (patch)
tree2e0470de06d603b87b5a67614cb48bdce3d7baca /gl
parent53f48c7b0e4e574a73f5a649f938a0b537489d34 (diff)
downloadcoreutils-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.
Diffstat (limited to 'gl')
-rw-r--r--gl/lib/randread.c2
-rw-r--r--gl/modules/randread1
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