]> granicus.if.org Git - shadow/commitdiff
* lib/defines.h: Include <utmpx.h> and <utmp.h> to define
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 28 Apr 2009 21:01:20 +0000 (21:01 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 28 Apr 2009 21:01:20 +0000 (21:01 +0000)
USER_NAME_MAX_LENGTH.

ChangeLog
lib/defines.h

index 6eb6dcab8de571187a2d9c3eb7f5969f1c7caadd..8fbed5a064eb3d0767de73583cdaa84e82db1aff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-28  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/defines.h: Include <utmpx.h> and <utmp.h> to define
+       USER_NAME_MAX_LENGTH.
+
 2009-04-28  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/login.c: Change a snprintf() to strncpy(). There are no
index 3d44bb6ecb0c1354326899fbef10e4da8b52a89a..adf6c20d72cad5673337fe71e00845617b10b73e 100644 (file)
@@ -367,8 +367,10 @@ extern char *strerror ();
 
 /* Maximum length of usernames */
 #ifdef HAVE_UTMPX_H
+# include <utmpx.h>
 # define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user))
 #else
+# include <utmp.h>
 # ifdef HAVE_STRUCT_UTMP_UT_USER
 #  define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
 # else