[PATCH] core dump in glib 1.2.0 (AIX 4.2.1)
- From: Olaf Dietsche <olaf dietsche+list gtk netcologne de>
- To: gtk-list redhat com
- Subject: [PATCH] core dump in glib 1.2.0 (AIX 4.2.1)
- Date: 28 Feb 1999 18:56:17 +0100
Hi,
I installed gtk+/glib 1.2.0 on AIX and got a core dump
in gnp in `g_get_any_init()'. My configuration is as follows:
CC=cc_r CFLAGS= ./configure
And here's the patch:
--8<----cut here-----
*** gutils.c.orig Sun Feb 28 13:44:24 1999
--- gutils.c Sun Feb 28 13:50:47 1999
***************
*** 465,471 ****
--- 465,476 ----
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
error = error < 0 ? errno : error;
# else /* !HAVE_GETPWUID_R_POSIX */
+ # ifdef _AIX
+ error = getpwuid_r (getuid (), &pwd, buffer, bufsize);
+ pw = error == 0 ? &pwd : NULL;
+ # else /* !_AIX */
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
+ # endif /* !_AIX */
error = pw ? 0 : errno;
# endif /* !HAVE_GETPWUID_R_POSIX */
----cut here--->8----
Olaf.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]