
$FreeBSD$

Fix build on modern gcc which defines max_align_t for C11
It renames the locale definition to avoid the name clash.

--- nestegg/halloc/src/align.h.orig
+++ nestegg/halloc/src/align.h
@@ -30,7 +30,7 @@
 	void (*q)(void);
 };
 
-typedef union max_align max_align_t;
+typedef union max_align halloc_max_align_t;
 
 #endif
 

$FreeBSD$

--- nestegg/halloc/src/halloc.c.orig
+++ nestegg/halloc/src/halloc.c
@@ -30,7 +30,7 @@
 #endif
 	hlist_item_t  siblings; /* 2 pointers */
 	hlist_head_t  children; /* 1 pointer  */
-	max_align_t   data[1];  /* not allocated, see below */
+	halloc_max_align_t   data[1];  /* not allocated, see below */
 	
 } hblock_t;
 
