components/gnutls-3/patches/01_def_max_align_t.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 5143 9b4a483bf8d9
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

Source:
Internal

Info:
This patch checks to see if _MAX_ALIGN_T has been defined.

Status: This patch is Solaris specific. It will not be sent upstream.

--- ORIGINAL/src/gl/stddef.in.h		Sat Sep 26 05:02:10 2015
+++ gnutls-3.4.1/src/gl/stddef.in.h	Wed Nov  4 14:17:07 2015
@@ -94,6 +94,7 @@
 # else
 #  define _GL_STDDEF_ALIGNAS(type) /* */
 # endif
+#ifndef	_MAX_ALIGN_T
 typedef union
 {
   char *__p _GL_STDDEF_ALIGNAS (char *);
@@ -101,6 +102,7 @@
   long double __ld _GL_STDDEF_ALIGNAS (long double);
   long int __i _GL_STDDEF_ALIGNAS (long int);
 } max_align_t;
+#endif /* #ifndef _MAX_ALIGN_T */
 #endif
 
 #  endif /* _@GUARD_PREFIX@_STDDEF_H */