mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 00:55:24 +00:00
Align CMSG buffers to a void* boundary, fixes crash on architectures with strict alignment
CHANGES entry
This commit is contained in:
@@ -259,6 +259,11 @@ extern void mock_assert(const int result, const char* const expression,
|
||||
*/
|
||||
#define TIME_NOW(tp) RUNTIME_CHECK(isc_time_now((tp)) == ISC_R_SUCCESS)
|
||||
|
||||
/*%
|
||||
* Alignment
|
||||
*/
|
||||
#define ALIGN(x, a) (((x) + (a) - 1) & ~((typeof(x))(a)-1))
|
||||
|
||||
/*%
|
||||
* Misc
|
||||
*/
|
||||
|
Reference in New Issue
Block a user