ports/106716: [PATCH] net/gnu-finger: fix build with gcc41
trasz
trasz at pin.if.uz.zgora.pl
Thu Dec 14 12:30:21 UTC 2006
>Number: 106716
>Category: ports
>Synopsis: [PATCH] net/gnu-finger: fix build with gcc41
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 14 12:30:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: trasz
>Release: FreeBSD 6.1-RELEASE-p10 i386
>Organization:
>Environment:
System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006
>Description:
Fix build with gcc41.
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006121307/gnu-finger-1.37_1.log
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- gnu-finger-1.37_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/gnu-finger/files/patch-ab /home/trasz/gnu-finger/files/patch-ab
--- /usr/ports/net/gnu-finger/files/patch-ab Mon Jan 6 15:09:34 1997
+++ /home/trasz/gnu-finger/files/patch-ab Thu Dec 14 13:18:33 2006
@@ -1,5 +1,5 @@
---- lib/os.c.orig Mon Jan 6 22:09:06 1997
-+++ lib/os.c Mon Jan 6 22:08:34 1997
+--- lib/os.c.orig Thu Oct 22 22:01:10 1992
++++ lib/os.c Thu Dec 14 13:02:56 2006
@@ -26,6 +26,8 @@
#include <sys/acct.h>
#include <time.h>
@@ -9,7 +9,7 @@
#ifdef HAVE_UTMPX_H
#include <utmpx.h>
-@@ -70,8 +72,12 @@
+@@ -70,13 +72,18 @@
/* Where the utmp file is located. */
#ifndef HAVE_GETUTENT
@@ -22,7 +22,13 @@
/* A non-null value is the address of the utmp entry which contains the
information for the user using the console. */
-@@ -288,6 +294,21 @@
+ UTMP *console_user;
+
++long get_last_access(char *);
+
+ /* **************************************************************** */
+ /* */
+@@ -288,6 +295,21 @@
{
idle = current_time - get_last_access (utmplist[i]->ut_line);
@@ -44,7 +50,7 @@
if (idle < 0)
idle = 0;
-@@ -485,6 +506,7 @@
+@@ -485,6 +507,7 @@
UTMP **result;
int result_size = 0;
@@ -52,7 +58,7 @@
#ifndef HAVE_GETUTENT
file = open (UTMP_FILE, O_RDONLY);
-@@ -528,6 +550,26 @@
+@@ -528,6 +551,26 @@
if (!UT (entry, ut_name)[0])
continue;
#endif /* sun */
--- gnu-finger-1.37_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list