From df6ac133d3dacd2fc7f7476580bc8bc05c4f5553 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 --- lib/socket.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/socket.h b/lib/socket.h index 76e59de08..c3b2d3571 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; \