Patchwork [21/23,AARCH64] Make __SIZEOF_SEM_T 16 for ILP32

login
register
mail settings
Submitter Yury Norov
Date June 28, 2016, 4:39 p.m.
Message ID <1467131978-669-22-git-send-email-ynorov@caviumnetworks.com>
Download mbox | patch
Permalink /patch/13444/
State New
Headers show

Comments

Yury Norov - June 28, 2016, 4:39 p.m.
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
---
 sysdeps/aarch64/nptl/bits/semaphore.h | 4 ++++
 1 file changed, 4 insertions(+)
Joseph Myers - June 28, 2016, 5:16 p.m.
Missing preprocessor indentation.

Patch

diff --git a/sysdeps/aarch64/nptl/bits/semaphore.h b/sysdeps/aarch64/nptl/bits/semaphore.h
index 3cc5b37..1d1389c 100644
--- a/sysdeps/aarch64/nptl/bits/semaphore.h
+++ b/sysdeps/aarch64/nptl/bits/semaphore.h
@@ -21,7 +21,11 @@ 
 #endif
 
 
+#ifdef __ILP32__
+#define __SIZEOF_SEM_T	16
+#else
 #define __SIZEOF_SEM_T	32
+#endif
 
 
 /* Value returned if `sem_open' failed.  */