ports/devel/argdata/files/patch-max_align_t
Ed Schouten bd4875a6bb Upgrade argdata and cloudabi-utils to the latest upstream versions.
Version 0.3 of argdata includes an all new reader/writer API that allows
you to stream argdata objects into files, pipes and sockets. Version 0.4
reworks the iterator API to make it easier/safer to duplicate iterators.

Version 0.4 of argdata now depends on max_align_t. This type definition
is not available on older versions of FreeBSD. Add a local patch to use
a locally defined structure instead. This patch can be removed once we
only support versions that do provide this type.

Version 0.25 of cloudabi-utils catches up with the argdata iterator API
changes.

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D11300
2017-06-22 12:37:35 +00:00

15 lines
336 B
Text

--- src/argdata.h
+++ src/argdata.h
@@ -34,7 +34,11 @@
#define ARGDATA_MAX_ALIGN __declspec(align(8))
#else
#include <stdalign.h>
-#define ARGDATA_MAX_ALIGN alignas(max_align_t)
+struct argdata_max_align {
+ long long a;
+ long double b;
+};
+#define ARGDATA_MAX_ALIGN alignas(struct argdata_max_align)
#endif
struct timespec;