Work around an bug in Mac OS < 10.3. (#156446, Dave MacLachlan)

2004-11-07  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c (g_get_any_init): Work around an bug
	in Mac OS < 10.3.  (#156446, Dave MacLachlan)
This commit is contained in:
Matthias Clasen 2004-11-07 06:32:06 +00:00 committed by Matthias Clasen
parent eef378cd31
commit 91c3c3ab1c
6 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/g-gnulib.h: Undef libc functions before defining

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/g-gnulib.h: Undef libc functions before defining

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/g-gnulib.h: Undef libc functions before defining

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/g-gnulib.h: Undef libc functions before defining

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gnulib/g-gnulib.h: Undef libc functions before defining

View File

@ -934,7 +934,10 @@ g_get_any_init (void)
do
{
g_free (buffer);
buffer = g_malloc (bufsize);
/* we allocate 6 extra bytes to work around a bug in
* Mac OS < 10.3. See #156446
*/
buffer = g_malloc (bufsize + 6);
errno = 0;
# ifdef HAVE_POSIX_GETPWUID_R