View | Details | Raw Unified | Return to bug 197624 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-fix-max_align_t (+26 lines)
Line 0 Link Here
1
Fix build on modern gcc which defines max_align_t for C11
2
It renames the locale definition to avoid the name clash.
3
4
--- nestegg/halloc/src/align.h.orig	2015-02-13 18:52:27.000000000 +0200
5
+++ nestegg/halloc/src/align.h	2015-02-13 19:09:17.000000000 +0200
6
@@ -30,7 +30,7 @@
7
 	void (*q)(void);
8
 };
9
 
10
-typedef union max_align max_align_t;
11
+typedef union max_align halloc_max_align_t;
12
 
13
 #endif
14
 
15
--- nestegg/halloc/src/halloc.c.orig	2015-02-13 19:05:53.000000000 +0200
16
+++ nestegg/halloc/src/halloc.c	2015-02-13 19:06:12.000000000 +0200
17
@@ -30,7 +30,7 @@
18
 #endif
19
 	hlist_item_t  siblings; /* 2 pointers */
20
 	hlist_head_t  children; /* 1 pointer  */
21
-	max_align_t   data[1];  /* not allocated, see below */
22
+	halloc_max_align_t   data[1];  /* not allocated, see below */
23
 	
24
 } hblock_t;
25
 
26

Return to bug 197624