Merge branch '532-master-doesn-t-build-on-macos-due-to-class-of-align-macros-v9_11' into 'v9_11'
Resolve "master doesn't build on MacOS due to class of ALIGN macros" See merge request isc-projects/bind9!776
This commit is contained in:
@@ -237,7 +237,7 @@
|
||||
/*%
|
||||
* 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
|
||||
|
||||
@@ -348,8 +348,8 @@ typedef isc_event_t intev_t;
|
||||
#define CMSG_SP_INT 24
|
||||
|
||||
/* 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 SENDCMSGBUFLEN ALIGN(2*(CMSG_SP_IN6PKT + CMSG_SP_INT + 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 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.
|
||||
|
||||
Reference in New Issue
Block a user