summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-control-center3/files/patch-panels_user-accounts_um-account-dialog.c
blob: 82c11201955bb027718046019ea329203059e33c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- panels/user-accounts/um-account-dialog.c.orig   2011-01-21 09:07:21.000000000 +0100
+++ panels/user-accounts/um-account-dialog.c    2011-01-21 09:16:37.000000000 +0100
@@ -24,7 +24,16 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <pwd.h>
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#if __FreeBSD_version < 900000
 #include <utmp.h>
+#else
+#include <utmpx.h>
+/* from the old utmp.h */
+#define UT_NAMESIZE 16
+#endif
+#endif
 
 #include <glib.h>
 #include <glib/gi18n.h>