summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-control-center3/files/patch-panels_user-accounts_um-utils.c
blob: b52aa9a1fb30992cba652ddb6894f0d6b5e5aa97 (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-utils.c.orig    2011-09-17 14:55:58.000000000 +0200
+++ panels/user-accounts/um-utils.c 2011-09-17 14:57:01.000000000 +0200
@@ -25,7 +25,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>