From 6447064d813b25869cf5e3e4d984caf130c2abb7 Mon Sep 17 00:00:00 2001 From: Takeyoshi Kikuchi Date: Mon, 13 Feb 2023 02:21:50 +0900 Subject: [PATCH] netinet: in.h: add support for Nimlang compatibility. Without this POSIX-compatible definition, support for nativesockets module in Nimlang is problematic. .nimcache/(snip)@spure@snativesockets.nim.c: In function 'toInt__pureZnativesockets_69': .nimcache/(snip): error: 'IPPROTO_ICMPV6' undeclared (first use in this function); did you mean 'IPPROTO_ICMP6'? 291 | result = IPPROTO_ICMPV6; | ^~~~~~~~~~~~~~ | IPPROTO_ICMP6 Signed-off-by: Takeyoshi Kikuchi --- include/netinet/in.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/netinet/in.h b/include/netinet/in.h index c240634d200..40813671738 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -58,6 +58,7 @@ #define IPPROTO_ESP 50 /* Encapsulation Security Payload protocol */ #define IPPROTO_AH 51 /* Authentication Header protocol */ #define IPPROTO_ICMP6 58 /* Internal Control Message Protocol v6 */ +#define IPPROTO_ICMPV6 IPPROTO_ICMP6 #define IPPROTO_NONE 59 /* IPv6 no next header. */ #define IPPROTO_DSTOPTS 60 /* IPv6 destination options. */ #define IPPROTO_MTP 92 /* Multicast Transport Protocol. */