]> 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:30:59 +0000 (09:30 +1000)
(cherry picked from commit 81b133d9638114457b3fc237b25066cc59e221e9)

lib/isc/include/isc/util.h
lib/isc/unix/socket.c

index 2ed0a2a4a99143e3d05426c187447bf753aaa1cf..75a63c1400b2bee3bdd4afc0f46efdb9151d86bc 100644 (file)
 /*%
  * 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 946feb0d67190766d90b8d8ad82ac720c225a39e..5a407683457d8d2b841b33adcb7df13f3da3d4ba 100644 (file)
@@ -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.