X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ckufio.c;h=b5bfaae60d5e019c654e44f73956ab8520bad021;hb=ac474f1b8a669fcca9757cc53cf48146f08f9828;hp=d860757c8e807f666b270cdf33147e1a6f8a9753;hpb=31e271107096d1ffa97b7d0c15222b8bd5e69f74;p=ckermit.git diff --git a/ckufio.c b/ckufio.c index d860757..b5bfaae 100644 --- a/ckufio.c +++ b/ckufio.c @@ -3,12 +3,12 @@ #define CK_NONBLOCK /* See zoutdump() */ #ifdef aegis -char *ckzv = "Aegis File support, 9.0.215, 13 Jun 2011"; +char *ckzv = "Aegis File support, 9.0.216, 20 Aug 2011"; #else #ifdef Plan9 -char *ckzv = "Plan 9 File support, 9.0.215, 13 Jun 2011"; +char *ckzv = "Plan 9 File support, 9.0.216, 20 Aug 2011"; #else -char *ckzv = "UNIX File support, 9.0.215, 13 Jun 2011"; +char *ckzv = "UNIX File support, 9.0.216, 20 Aug 2011"; #endif /* Plan9 */ #endif /* aegis */ /* @@ -69,7 +69,14 @@ _PROTOTYP( int parser, ( int ) ); #endif /* OSF13 */ #endif /* COMMENT */ -#include +#ifndef HPUXPRE65 +#include /* Error number symbols */ +#else +#ifndef ERRNO_INCLUDED +#include /* Error number symbols */ +#endif /* ERRNO_INCLUDED */ +#endif /* HPUXPRE65 */ + #include #ifdef MINIX2 @@ -1062,6 +1069,7 @@ logwtmp __P ((__const char *__ut_line, __const char *__ut_name, #endif /* IRIX60 */ #endif /* SOLARIS */ #endif /* HAVEUTMPX */ + #ifdef HAVEUTMPX #include #else @@ -1150,7 +1158,11 @@ logwtmp(line, name, host) char *line, *name, *host; } if (!fstat(wtmpfd, &buf)) { ckstrncpy(ut.ut_line, line, sizeof(ut.ut_line)); +#ifdef FREEBSD9 + ckstrncpy(ut.ut_user, name, sizeof(ut.ut_user)); +#else ckstrncpy(ut.ut_name, name, sizeof(ut.ut_name)); +#endif /* FREEBSD9 */ #ifdef HAVEUTHOST /* Not portable */ ckstrncpy(ut.ut_host, host, sizeof(ut.ut_host));