$OpenBSD: patch-src_mem_align_h,v 1.2 2017/09/02 21:43:45 jeremy Exp $

Index: src/mem/align.h
--- src/mem/align.h.orig
+++ src/mem/align.h
@@ -15,22 +15,10 @@
 #ifndef _LIBP_ALIGN_H_
 #define _LIBP_ALIGN_H_
 
-/*
- *	a type with the most strict alignment requirements
- */
-union max_align
-{
-	char   c;
-	short  s;
-	long   l;
-	int    i;
-	float  f;
-	double d;
-	void * v;
-	void (*q)(void);
-};
-
-typedef union max_align h_max_align_t;
-
+typedef struct {
+	long long __max_align_ll __aligned(__alignof__(long long));
+	long double __max_align_ld __aligned(__alignof__(long double));
+} h_max_align_t;
+ 
 #endif
 
