Browse Source

MT#55283 compile fix for older glibc

Change-Id: Ia300c32cd9d68833d0fa90763df7d34c3fe465d5
(cherry picked from commit df6ac133d3)
(cherry picked from commit 4e765353b4)
mr12.5.1
Richard Fuchs 3 months ago
parent
commit
3c66c6f859
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lib/socket.h

+ 4
- 0
lib/socket.h View File

@ -213,6 +213,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; \


Loading…
Cancel
Save