diff options
author | marcus <marcus@FreeBSD.org> | 2010-01-24 04:11:42 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2010-01-24 04:11:42 +0800 |
commit | eb871800dbebbe11a201575254d19b59e0db2711 (patch) | |
tree | 6d137de2c6b56dabbb6a41af047a27f965cb4237 /sysutils/gnome-system-tools | |
parent | 7ab82649483470cd2edb0bea77610feed535470b (diff) | |
download | freebsd-ports-gnome-eb871800dbebbe11a201575254d19b59e0db2711.tar.gz freebsd-ports-gnome-eb871800dbebbe11a201575254d19b59e0db2711.tar.zst freebsd-ports-gnome-eb871800dbebbe11a201575254d19b59e0db2711.zip |
Fix the build now that utmp.h is a stub.
PR: 143064
Submitted by: Rob Farmer <rfarmer@predatorlabs.net>
Diffstat (limited to 'sysutils/gnome-system-tools')
-rw-r--r-- | sysutils/gnome-system-tools/files/patch-src_users_user-settings.c | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c b/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c index c19a384a9d10..bfc0d5eaa8b3 100644 --- a/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c +++ b/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c @@ -1,6 +1,24 @@ ---- src/users/user-settings.c.orig Sun Apr 22 23:32:58 2007 -+++ src/users/user-settings.c Sun Apr 22 23:34:18 2007 -@@ -632,10 +632,10 @@ +--- src/users/user-settings.c.orig 2009-12-15 05:17:23.000000000 -0800 ++++ src/users/user-settings.c 2010-01-20 22:25:39.000000000 -0800 +@@ -29,7 +29,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <stdlib.h> +-#include <utmp.h> ++#include <sys/param.h> + #include <ctype.h> + + #include "users-table.h" +@@ -367,7 +367,7 @@ + { + gint max_len; + #ifdef __FreeBSD__ +- max_len = UT_NAMESIZE; ++ max_len = MAXLOGNAME - 1; + #else + struct utmp ut; + +@@ -819,10 +819,10 @@ password_changed = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), "changed")); if (password_changed) |