diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-01-20 22:47:28 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-01-20 22:47:28 +0800 |
commit | d54d08b2222afffe1d22683b81aaee6b45f9ebd0 (patch) | |
tree | c828b7854faff974ea9728a498b258fc3e5fa491 | |
parent | 1b17237c69781ae765673997c952fafa9319b7a7 (diff) | |
download | marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.tar marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.tar.gz marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.tar.bz2 marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.tar.lz marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.tar.xz marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.tar.zst marcuscom-ports-d54d08b2222afffe1d22683b81aaee6b45f9ebd0.zip |
Fix utmpx breakage on 9.x
Noticed by: walder @ irc.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13491 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | sysutils/gnome-system-tools/files/patch-src_users_user-settings.c | 31 |
1 files changed, 31 insertions, 0 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 new file mode 100644 index 000000000..c9fcbb653 --- /dev/null +++ b/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c @@ -0,0 +1,31 @@ +--- src/users/user-settings.c.orig 2010-01-11 19:53:32.000000000 +0100 ++++ src/users/user-settings.c 2010-01-20 15:42:10.000000000 +0100 +@@ -31,7 +31,15 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <stdlib.h> ++#ifdef __FreeBSD__ ++# include <sys/param.h> ++# if __FreeBSD_version >= 900007 ++# define HAVE_UTMPX_H ++#include <utmpx.h> ++# else + #include <utmp.h> ++# endif ++#endif + #include <ctype.h> + + #include "users-table.h" +@@ -274,10 +282,10 @@ static void + set_login_length (GtkWidget *entry) + { + gint max_len; +-#ifdef __FreeBSD__ ++#if (defined(__FreeBSD__) && !defined(HAVE_UTMPX_H)) + max_len = UT_NAMESIZE; + #else +- struct utmp ut; ++ struct utmpx ut; + + max_len = sizeof (ut.ut_user); + #endif |