diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2011-09-01 05:08:54 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2011-09-01 05:08:54 +0000 |
| commit | 7fdc13c33741f305ee7b72b12dc26068d555f691 (patch) | |
| tree | 379d7f3477e9658d70603c594340d55680f65926 /security/krb5-appl/files/patch-bsd-krlogind.c | |
| parent | Upgrade to version 9.8.1. Release notes at: (diff) | |
Fix build under 9.0-CURRENT.
Diffstat (limited to 'security/krb5-appl/files/patch-bsd-krlogind.c')
| -rw-r--r-- | security/krb5-appl/files/patch-bsd-krlogind.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/krb5-appl/files/patch-bsd-krlogind.c b/security/krb5-appl/files/patch-bsd-krlogind.c new file mode 100644 index 000000000000..a7afaf09e7c3 --- /dev/null +++ b/security/krb5-appl/files/patch-bsd-krlogind.c @@ -0,0 +1,26 @@ +--- bsd/krlogind.c.orig 2009-11-21 12:29:19.000000000 -0800 ++++ bsd/krlogind.c 2011-08-31 21:05:10.318698837 -0700 +@@ -236,6 +236,9 @@ + #ifdef HAVE_UTMP_H + #include <utmp.h> + #endif ++#ifdef HAVE_UTMPX_H ++#include <utmpx.h> ++#endif + + int non_privileged = 0; /* set when connection is seen to be from */ + /* a non-privileged port */ +@@ -275,8 +278,13 @@ + #define MAX_PROG_NAME 16 + + #ifndef UT_NAMESIZE /* linux defines it directly in <utmp.h> */ ++#ifdef HAVE_UTMP_H + #define UT_NAMESIZE sizeof(((struct utmp *)0)->ut_name) + #endif ++#ifdef HAVE_UTMPX_H ++#define UT_NAMESIZE sizeof(((struct utmpx *)0)->ut_user) ++#endif ++#endif + + #if HAVE_ARPA_NAMESER_H + #include <arpa/nameser.h> |
