diff options
Diffstat (limited to 'net/v6eval/files/patch-lib_Cm_CmMain.cc')
-rw-r--r-- | net/v6eval/files/patch-lib_Cm_CmMain.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/v6eval/files/patch-lib_Cm_CmMain.cc b/net/v6eval/files/patch-lib_Cm_CmMain.cc new file mode 100644 index 0000000..4519d9e --- /dev/null +++ b/net/v6eval/files/patch-lib_Cm_CmMain.cc @@ -0,0 +1,23 @@ +--- lib/Cm/CmMain.cc.orig 2003-10-23 13:37:30.000000000 +0900 ++++ lib/Cm/CmMain.cc 2013-03-06 04:38:49.000000000 +0900 +@@ -47,7 +47,11 @@ + #include <string.h> + #include <stdlib.h> + #include <unistd.h> ++#if __FreeBSD_version <= 900006 + #include <utmp.h> ++#else ++#include <utmpx.h> ++#endif + #include <time.h> + #include <pwd.h> + #include <sys/time.h> +@@ -129,7 +133,7 @@ + //---------------------------------------------------------------------- + // 障害解析情報作成 + static struct utmp *myUtmpEnt(FILE *in,struct utmp *u) { +- int s=ttyslot(); ++ int s = 0; + if(s<0||fseek(in,sizeof(struct utmp)*s,0)<0|| + fread(u,sizeof(struct utmp),1,in)==0) {return 0;} + return u;} |