mirror of git://sourceware.org/git/glibc.git
Allow compat handling of getutmp.
This commit is contained in:
parent
3a85895fa3
commit
92934e8b84
|
|
@ -1,5 +1,10 @@
|
||||||
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
2009-10-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[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
|
* resolv/res_send.c (__libc_res_nsend): Fix copying of IPv4 server
|
||||||
addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
|
addresses. Patch by Petar Bogdanovic <petar@smokva.net>.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
|
@ -19,10 +19,12 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
|
#ifndef _UTMPX_H
|
||||||
/* This is an ugly hack but we must not see the getutmpx declaration. */
|
/* This is an ugly hack but we must not see the getutmpx declaration. */
|
||||||
#define getutmpx XXXgetutmpx
|
# define getutmpx XXXgetutmpx
|
||||||
#include <utmpx.h>
|
# include <utmpx.h>
|
||||||
#undef getutmpx
|
# undef getutmpx
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
getutmp (const struct utmpx *utmpx, struct utmp *utmp)
|
getutmp (const struct utmpx *utmpx, struct utmp *utmp)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue