[libc-commits] [libc] [libc] Define TCP_CM_INQ (PR #239982)

Mike Lothian via libc-commits libc-commits at lists.llvm.org
Sun Nov 8 18:50:01 PST 2026


https://github.com/FireBurn updated https://github.com/llvm/llvm-project/pull/239982

>From e9cadaaf705eb9a7195d342253bde37114355fd1 Mon Sep 17 00:00:00 2001
From: Mike Lothian <mike at fireburn.co.uk>
Date: Mon, 2 Nov 2026 10:22:36 +0000
Subject: [PATCH] [libc] Define TCP_CM_INQ

The kernel's headers name the control message type that TCP_INQ asks for
separately. gRPC reads the byte count back by that name and does not
define it when TCP_INQ is already defined, so it did not compile.

Assisted-by: Claude
---
 libc/include/llvm-libc-macros/linux/netinet-tcp-macros.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libc/include/llvm-libc-macros/linux/netinet-tcp-macros.h b/libc/include/llvm-libc-macros/linux/netinet-tcp-macros.h
index 0dffe507dc9fc1..3da802947f7e8a 100644
--- a/libc/include/llvm-libc-macros/linux/netinet-tcp-macros.h
+++ b/libc/include/llvm-libc-macros/linux/netinet-tcp-macros.h
@@ -46,6 +46,7 @@
 #define TCP_FASTOPEN_KEY 33 // unsigned char[]
 #define TCP_FASTOPEN_NO_COOKIE 34
 #define TCP_INQ 36
+#define TCP_CM_INQ TCP_INQ
 #define TCP_TX_DELAY 37
 #define TCP_IS_MPTCP 43
 #define TCP_RTO_MAX_MS 44



More information about the libc-commits mailing list