From: Ulrich Drepper Date: Thu, 29 Oct 2009 15:33:12 +0000 (-0700) Subject: Allow compat handling of getutmp. X-Git-Tag: glibc-2.11~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92934e8b848fd55483606addf37687913a980bca;p=platform%2Fupstream%2Fglibc.git Allow compat handling of getutmp. --- diff --git a/ChangeLog b/ChangeLog index 637f05a..0f5c45a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-10-29 Ulrich Drepper + [BZ #10847] + * sysdeps/gnu/getutmp.c: Allow compatibility code to play around with + getutmpx symbol. + + [BZ #10823] * resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server addresses. Patch by Petar Bogdanovic . diff --git a/sysdeps/gnu/getutmp.c b/sysdeps/gnu/getutmp.c index 7b6d771..9647c25 100644 --- a/sysdeps/gnu/getutmp.c +++ b/sysdeps/gnu/getutmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1999 Free Software Foundation, Inc. +/* Copyright (C) 1999, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,10 +19,12 @@ #include #include #include +#ifndef _UTMPX_H /* This is an ugly hack but we must not see the getutmpx declaration. */ -#define getutmpx XXXgetutmpx -#include -#undef getutmpx +# define getutmpx XXXgetutmpx +# include +# undef getutmpx +#endif void getutmp (const struct utmpx *utmpx, struct utmp *utmp)