From 50424fe2a5325b17d294a0bd740df17fd21eb520 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Oct 2011 22:31:17 +0100 Subject: maint: avoid new "make syntax-check" failure due to stdalign definition * gl/modules/randread (Depends-on): Add stdalign. * gl/lib/randread.c: Include , so we can ... [!_STRING_ARCH_unaligned]: remove definition of stdalign. --- gl/lib/randread.c | 2 +- gl/modules/randread | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#include #include #include #include @@ -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 -- cgit v1.2.3-70-g09d2