From b5cd3c7a7503d8155ea17424c00f7e77603252c0 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) Change-Id: Ieaee6d09089b161ec516ba22cafaee1ecb4342da --- 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 } }