Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3f8d890

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "<netinet/in6.h>: don't require <string.h>." into main
2 parents 18c76a0 + ce4abcb commit 3f8d890

File tree

1 file changed

+1
-1
lines changed
  • libc/include/netinet

1 file changed

+1
-1
lines changed

libc/include/netinet/in6.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
(IN6_IS_ADDR_MULTICAST(a) && (IPV6_ADDR_MC_SCOPE(a) == IPV6_ADDR_SCOPE_GLOBAL))
9090

9191
#define IN6_ARE_ADDR_EQUAL(a, b) \
92-
(memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
92+
(__builtin_memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
9393

9494
#define INET6_ADDRSTRLEN 46
9595

0 commit comments

Comments
 (0)