1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 16:19:23 +02:00

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.
This commit is contained in:
Jim Meyering
2011-10-30 22:31:17 +01:00
parent 53f48c7b0e
commit 50424fe2a5
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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
+1
View File
@@ -14,6 +14,7 @@ inline
fopen-safer
gettimeofday
quotearg
stdalign
stdbool
stdint
unlocked-io