Date: Thu, 05 Mar 2015 07:52:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 198301] japanese/sj3-server sj3.c:1359: error: expected declaration or statement at end of input Message-ID: <bug-198301-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198301 Bug ID: 198301 Summary: japanese/sj3-server sj3.c:1359: error: expected declaration or statement at end of input Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: hrs@FreeBSD.org Reporter: yoshin-t@jp.fujitsu.com Flags: maintainer-feedback?(hrs@FreeBSD.org) Assignee: hrs@FreeBSD.org Created attachment 153819 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153819&action=edit FIXED japanese/sj3-server/files/post-patch-sj3-sj3.c # uname -r 8.4-RELEASE-p23 will end in build failure. sj3.c: In function 'clearutmpentry': sj3.c:1359: error: expected declaration or statement at end of input *** Error code 1 This is because '}' is missing in case of __FreeBSD_version <= 900006 void clearutmpentry () { /* XXX */ #if __FreeBSD_version <= 900006 int f; struct utmp Utmp; Utmp.ut_line[0] = '\0'; Utmp.ut_name[0] = '\0'; Utmp.ut_host[0] = '\0'; Utmp.ut_time = 0; if (Ttyslot > 0 && (f = open (_PATH_UTMP, 1)) >= 0) { lseek (f, (long) (Ttyslot * sizeof (Utmp)), 0); write (f, (char *)&Utmp, sizeof (Utmp)); close (f); } #else return; } #endif -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198301-13>