summaryrefslogtreecommitdiff
path: root/gutils.c
diff options
context:
space:
mode:
authorCDT 1999 Shawn T. Amundson <amundson@gtk.org>1999-05-08 07:40:44 +0000
committerShawn Amundson <amundson@src.gnome.org>1999-05-08 07:40:44 +0000
commit499c9786d1316bc72c539d55786bb3a65d95a83a (patch)
tree9af442bcdb994b2d8f4ae926d0ed0eb1edfdf02a /gutils.c
parent2b688f549c8a2719544b33859cdc5ef99355cf37 (diff)
downloadglib-499c9786d1316bc72c539d55786bb3a65d95a83a.tar.gz
Port to BeOS by myself and Richard Offer.
Sat May 8 01:52:29 CDT 1999 Shawn T. Amundson <amundson@gtk.org> * configure.in gerror.c gmain.c gstrfuncs.c gutils.c ltconfig ltmain.sh gmodule/Makefile.am gmodule/gmodule.c gmodule/gmoduleconf.h.in gmodule/gmodule-beos.c gthread/Makefile.am: Port to BeOS by myself and Richard Offer.
Diffstat (limited to 'gutils.c')
-rw-r--r--gutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gutils.c b/gutils.c
index 4d90a6671..fd468f790 100644
--- a/gutils.c
+++ b/gutils.c
@@ -504,7 +504,11 @@ g_get_any_init (void)
if (pw)
{
g_user_name = g_strdup (pw->pw_name);
+#ifdef HAVE_PW_GECOS
g_real_name = g_strdup (pw->pw_gecos);
+#else
+ g_real_name = g_strdup (g_user_name);
+#endif
if (!g_home_dir)
g_home_dir = g_strdup (pw->pw_dir);
}