diff --git a/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst new file mode 100644 index 00000000000000..9aa1be32fc2fb7 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-11-29-11-04-15.gh-issue-127383.uH22xx.rst @@ -0,0 +1 @@ +Add the ``RDS_CMSG_RXPATH_LATENCY`` constant to the :mod:`socket` module. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 2764bd6e2b2a47..91f83358c40fd1 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -8753,6 +8753,9 @@ socket_exec(PyObject *m) #ifdef RDS_CMSG_RDMA_STATUS ADD_INT_MACRO(m, RDS_CMSG_RDMA_STATUS); #endif +#ifdef RDS_CMSG_RXPATH_LATENCY + ADD_INT_MACRO(m, RDS_CMSG_RXPATH_LATENCY); +#endif #ifdef RDS_CMSG_RDMA_UPDATE ADD_INT_MACRO(m, RDS_CMSG_RDMA_UPDATE); #endif