From d4e23457cf8bf7557d646fc171e0bee3ba223c8d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 16 Sep 2025 08:43:32 -0400 Subject: [PATCH] MT#55283 compile fix for older glibc Change-Id: Ia300c32cd9d68833d0fa90763df7d34c3fe465d5 (cherry picked from commit df6ac133d3dacd2fc7f7476580bc8bc05c4f5553) (cherry picked from commit 6c9eb94a05f26c3ac883b9519325b9a3371a7dc7) --- lib/socket.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/socket.h b/lib/socket.h index 7a82b4a86..417f8fadd 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -223,6 +223,10 @@ struct timeval32 { int32_t tv_usec; }; +#ifndef SO_TIMESTAMP_OLD +#define SO_TIMESTAMP_OLD SO_TIMESTAMP // pointless, compiler should remove it +#endif + #define socket_recvfrom_parse_cmsg(tv, to, parse_to, msgh, firsthdr, nexthdr) do { \ if ((*tv) || (*to)) { \ struct cmsghdr *cm; \