From 12f6214d07ad93814bad81cb384e087792068213 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Fri, 25 Nov 2016 22:10:20 +0000 Subject: shred,sort: ensure faster unaligned access to rand module glibc has changed the public define from _STRING_ARCH_unaligned to _STRING_INLINE_unaligned as per https://sourceware.org/bugzilla/show_bug.cgi?id=19462 * gl/lib/rand-isaac.c: Cater for both defines. * gl/lib/randread.c: Likewise. * src/system.h: Update commented out code. --- src/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index e82dce498..3fa0740c6 100644 --- a/src/system.h +++ b/src/system.h @@ -515,7 +515,7 @@ is_nul (void const *buf, size_t length) to avoid -fsanitize=undefined warnings. Considering coreutils is mainly concerned with relatively large buffers, we'll just use the defined behavior. */ -#if 0 && _STRING_ARCH_unaligned +#if 0 && (_STRING_ARCH_unaligned || _STRING_INLINE_unaligned) unsigned long word; #else unsigned char word; -- cgit v1.2.3-54-g00ecf