mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Merge branch '532-master-doesn-t-build-on-macos-due-to-class-of-align-macros' into 'master'
Resolve "master doesn't build on MacOS due to class of ALIGN macros" Closes #532 See merge request isc-projects/bind9!774
This commit is contained in:
@@ -262,7 +262,7 @@ extern void mock_assert(const int result, const char* const expression,
|
|||||||
/*%
|
/*%
|
||||||
* Alignment
|
* Alignment
|
||||||
*/
|
*/
|
||||||
#define ALIGN(x, a) (((x) + (a) - 1) & ~((typeof(x))(a)-1))
|
#define ISC_ALIGN(x, a) (((x) + (a) - 1) & ~((typeof(x))(a)-1))
|
||||||
|
|
||||||
/*%
|
/*%
|
||||||
* Misc
|
* Misc
|
||||||
|
@@ -314,8 +314,8 @@ typedef isc_event_t intev_t;
|
|||||||
#define CMSG_SP_INT 24
|
#define CMSG_SP_INT 24
|
||||||
|
|
||||||
/* Align cmsg buffers to be safe on SPARC etc. */
|
/* Align cmsg buffers to be safe on SPARC etc. */
|
||||||
#define RECVCMSGBUFLEN ALIGN(2*(CMSG_SP_IN6PKT + CMSG_SP_TIMESTAMP + CMSG_SP_TCTOS)+1, sizeof(void*))
|
#define RECVCMSGBUFLEN ISC_ALIGN(2*(CMSG_SP_IN6PKT + CMSG_SP_TIMESTAMP + CMSG_SP_TCTOS)+1, sizeof(void*))
|
||||||
#define SENDCMSGBUFLEN ALIGN(2*(CMSG_SP_IN6PKT + CMSG_SP_INT + CMSG_SP_TCTOS)+1, sizeof(void*))
|
#define SENDCMSGBUFLEN ISC_ALIGN(2*(CMSG_SP_IN6PKT + CMSG_SP_INT + CMSG_SP_TCTOS)+1, sizeof(void*))
|
||||||
|
|
||||||
/*%
|
/*%
|
||||||
* The number of times a send operation is repeated if the result is EINTR.
|
* The number of times a send operation is repeated if the result is EINTR.
|
||||||
|
Reference in New Issue
Block a user