]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid new "make syntax-check" failure due to stdalign definition
authorJim Meyering <meyering@redhat.com>
Sun, 30 Oct 2011 21:31:17 +0000 (22:31 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 30 Oct 2011 21:38:47 +0000 (22:38 +0100)
* gl/modules/randread (Depends-on): Add stdalign.
* gl/lib/randread.c: Include <stdalign.h>, so we can ...
[!_STRING_ARCH_unaligned]: remove definition of stdalign.

gl/lib/randread.c
gl/modules/randread

index a75d9f623566631cbf1ea2228321d6026fff35cb..b2a3ce6e41be60f79ea0784b75dfe6b996c1d189 100644 (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
 
index 1c4a9051c4db08f196431d6f8d12ddaff817034e..33485c5ab4eac6f1b96f80198111509d0a704d93 100644 (file)
@@ -14,6 +14,7 @@ inline
 fopen-safer
 gettimeofday
 quotearg
+stdalign
 stdbool
 stdint
 unlocked-io