diff -urN proftpd-1.2.10rc1.orig/src/log.c proftpd-1.2.10rc1/src/log.c --- proftpd-1.2.10rc1.orig/src/log.c 2004-04-20 11:05:41.000000000 +0900 +++ proftpd-1.2.10rc1/src/log.c 2004-05-07 10:27:28.216137000 +0900 @@ -115,6 +115,8 @@ #else /* Non-SVR4 systems */ +#if !(defined(SOLARIS2_8) || defined(SOLARIS2_9)) + /* Solaris 8 or later doesn't have wtmp */ if (fd < 0 && (fd = open(WTMP_FILE, O_WRONLY|O_APPEND, 0)) < 0) { pr_log_pri(PR_LOG_WARNING, "wtmp %s: %s", WTMP_FILE, strerror(errno)); @@ -165,6 +167,7 @@ pr_log_debug(DEBUG0, "%s fstat(): %s",WTMP_FILE,strerror(errno)); res = -1; } +#endif /* SOLARIS2_8 */ #endif /* SVR4 */ return res;