From b3ac2145f4a4cab52d016601edd18f7789089e41 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Mon, 16 Mar 2015 17:06:59 -0700 Subject: [PATCH] Fix build: align pthread_cond_t to sizeof(long) (cherry picked from commit b5cd3c7a7503d8155ea17424c00f7e77603252c0) Change-Id: I69d8feeda2c8e0423c5626bcd40914e7eb9d85e4 --- libc/include/pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/pthread.h b/libc/include/pthread.h index 38282adb1..09ea113aa 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -78,7 +78,7 @@ typedef struct { #else char __private[4]; #endif -} pthread_cond_t __attribute__((aligned(8))); +} pthread_cond_t __attribute__((aligned(sizeof(long)))); #define PTHREAD_COND_INITIALIZER { { 0 } } -- 2.11.0