On Tue, 20 Jul 2021 11:17:23 +0200 Florian Weimer wrote: > * Lukasz Majewski: > > >> diff --git a/socket/sys/socket.h b/socket/sys/socket.h > >> index e779dc837f..b37c87e7df 100644 > >> --- a/socket/sys/socket.h > >> +++ b/socket/sys/socket.h > >> @@ -251,9 +251,24 @@ extern int __REDIRECT (recvmmsg, (int __fd, > >> struct mmsghdr *__vmessages, /* Put the current value for socket > >> FD's option OPTNAME at protocol level LEVEL into OPTVAL (which is > >> *OPTLEN bytes long), and set *OPTLEN to the value's actual length. > >> Returns 0 on success, -1 for errors. */ +#ifndef > >> __USE_TIME_BITS64 extern int getsockopt (int __fd, int __level, > >> int __optname, void *__restrict __optval, > >> socklen_t *__restrict __optlen) __THROW; > >> +#else > > > > [*] > > > >> +# ifdef __REDIRECT > >> +extern int __REDIRECT_NTH (getsockopt, > >> + (int __fd, int __level, int __optname, > >> + void *__restrict __optval, > >> + socklen_t *__restrict __optlen), > >> + __getsockopt64); > >> +# else > >> +extern int __getsockopt64 (int __fd, int __level, int __optname, > >> + void *__restrict __optval, > >> + socklen_t *__restrict __optlen) > >> __THROW; > > > > Shouldn't the __getsockopt64() declaration be placed at [*]. > > I think __REDIRECT_NTH does not need a declaration for the redirection > target. > Ok. > Thanks, > Florian > Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de