[PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.
Andreas Schwab
schwab@linux-m68k.org
Fri Aug 5 08:38:00 GMT 2016
On Fr, Aug 05 2016, Stefan Liebler <stli@linux.vnet.ibm.com> wrote:
> diff --git a/sysdeps/unix/sysv/linux/i386/gettimeofday.c b/sysdeps/unix/sysv/linux/i386/gettimeofday.c
> index 965bb81..cbf7833 100644
> --- a/sysdeps/unix/sysv/linux/i386/gettimeofday.c
> +++ b/sysdeps/unix/sysv/linux/i386/gettimeofday.c
> @@ -16,14 +16,20 @@
> License along with the GNU C Library; if not, see
> <http://www.gnu.org/licenses/>. */
>
> +#ifdef SHARED
> +# define __gettimeofday __redirect___gettimeofday
> +#endif
> +
> #include <sys/time.h>
>
> #ifdef SHARED
> +# undef __gettimeofday
> +# define redirection __redirect___gettimeofday
Please use a more specific name for this macro.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list