]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
avoid macro name collision with system defined macro
authorMark Andrews <marka@isc.org>
Sun, 9 Sep 2018 23:18:17 +0000 (09:18 +1000)
committerMark Andrews <marka@isc.org>
Sun, 9 Sep 2018 23:18:17 +0000 (09:18 +1000)
lib/isc/include/isc/util.h
lib/isc/unix/socket.c

index acc3d64c6494878ed57f14a7d1a55347fc39fc26..2343bebd97f8240656434c4922f1bde006a43bf9 100644 (file)
@@ -262,7 +262,7 @@ extern void mock_assert(const int result, const char* const expression,
 /*%
  * 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
index f59a85e5cc2eb14ca0af6b78df845036fbc458e2..2aebb46ac0c1bd1a8a57e405d554b409f2eb61c3 100644 (file)
@@ -314,8 +314,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.