gnome-control-center r8702 - trunk/capplets/about-me



Author: jensg
Date: Tue May 13 19:28:40 2008
New Revision: 8702
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8702&view=rev

Log:
2008-05-13  Jens Granseuer  <jensgr gmx net>

	Patch by: Laszlo Peter <laca sun com>

	* gnome-about-me.c: (get_user_login): fix build on Solaris when
	_POSIX_PTHREAD_SEMANTICS is defined (bug #532893)


Modified:
   trunk/capplets/about-me/ChangeLog
   trunk/capplets/about-me/gnome-about-me.c

Modified: trunk/capplets/about-me/gnome-about-me.c
==============================================================================
--- trunk/capplets/about-me/gnome-about-me.c	(original)
+++ trunk/capplets/about-me/gnome-about-me.c	Tue May 13 19:28:40 2008
@@ -333,7 +333,7 @@
 	struct passwd pwd, *err;
 
 	int i;
-#if __sun
+#if defined(__sun) && !defined(_POSIX_PTHREAD_SEMANTICS)
 	i = getpwuid_r (getuid (), &pwd, buf, sizeof (buf));
 	return (i != 0) ? g_strdup (pwd.pw_name) : NULL;
 #else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]