[Setup-tool-hackers] [PATCH] Fix GST compilation on FreeBSD
- From: Theo van Klaveren <t vanklaveren student utwente nl>
- To: setup-tool-hackers ximian com
- Subject: [Setup-tool-hackers] [PATCH] Fix GST compilation on FreeBSD
- Date: 29 Aug 2002 23:32:54 +0200
Hi,
I'd put this in bugzilla, but there doesn't seem to be a
gnome-setup-tools product there yet.
The attached patch fixes compilation of CVS GST on FreeBSD. It should
probably be done via autoconf though, but my autoconf-skills are not
quite up to it. This is a short-term fix, but if you want it applied,
I'll write a ChangeLog entry and commit.
Regards,
Theo
--
Theo van Klaveren <t.vanklaveren@student.utwente.nl>
http://home.student.utwente.nl/t.vanklaveren
Index: src/users/user-settings.c
===================================================================
RCS file: /cvs/gnome/ximian-setup-tools/src/users/user-settings.c,v
retrieving revision 1.1
diff -u -3 -p -r1.1 user-settings.c
--- src/users/user-settings.c 29 Aug 2002 18:44:30 -0000 1.1
+++ src/users/user-settings.c 29 Aug 2002 21:24:48 -0000
@@ -400,7 +400,11 @@ is_login_valid (xmlNodePtr node, const g
buf = g_strdup (_("The username is empty."));
/* If too long. */
+#ifdef __FreeBSD__
+ else if (strlen (login) > UT_NAMESIZE) /* = sizeof (ut.ut_name) */
+#else
else if (strlen (login) > sizeof (ut.ut_user))
+#endif
buf = g_strdup (_("The username is too long."));
/* If user being modified is root */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]