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:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ inline
|
||||
fopen-safer
|
||||
gettimeofday
|
||||
quotearg
|
||||
stdalign
|
||||
stdbool
|
||||
stdint
|
||||
unlocked-io
|
||||
|
||||
Reference in New Issue
Block a user