diff options
author | Calin Juravle <calin@google.com> | 2014-05-07 14:04:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-07 14:04:22 +0000 |
commit | b6c48b20e4aa9a0e0068980eb305dc522a680900 (patch) | |
tree | 44e09d6c34469a5ae93ed4ab18548c9155553b85 /libc/include | |
parent | fc2af0ca47cd5017838b495687784c82c080f9d2 (diff) | |
parent | 7d8f3033539e81475b52e791a0693b30bb7e2e68 (diff) | |
download | bionic-b6c48b20e4aa9a0e0068980eb305dc522a680900.zip bionic-b6c48b20e4aa9a0e0068980eb305dc522a680900.tar.gz bionic-b6c48b20e4aa9a0e0068980eb305dc522a680900.tar.bz2 |
Merge "Allow for better utmp logging."
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/utmp.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libc/include/utmp.h b/libc/include/utmp.h index ffd3c92..d764227 100644 --- a/libc/include/utmp.h +++ b/libc/include/utmp.h @@ -36,9 +36,15 @@ #define _PATH_WTMP "/var/log/wtmp" #define _PATH_LASTLOG "/var/log/lastlog" -#define UT_NAMESIZE 8 -#define UT_LINESIZE 8 -#define UT_HOSTSIZE 16 +#ifdef __LP64__ +#define UT_NAMESIZE 32 +#define UT_LINESIZE 32 +#define UT_HOSTSIZE 256 +#else +#define UT_NAMESIZE 8 +#define UT_LINESIZE 8 +#define UT_HOSTSIZE 16 +#endif #define USER_PROCESS 7 |