diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-15 06:19:12 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-15 06:19:12 +0800 |
commit | d97598be77a160f42a5c4a801eea366d70fb8714 (patch) | |
tree | f2461e9db7383f5d8de92ee3fc4c4f37f6c0714a /net/gnu-finger | |
parent | d96f266cfe7e9a9f26ec41070c65a1a34ba3362f (diff) | |
download | freebsd-ports-gnome-d97598be77a160f42a5c4a801eea366d70fb8714.tar.gz freebsd-ports-gnome-d97598be77a160f42a5c4a801eea366d70fb8714.tar.zst freebsd-ports-gnome-d97598be77a160f42a5c4a801eea366d70fb8714.zip |
- Fix gcc 4.1 build
PR: ports/106716
Submitted by: trasz
Diffstat (limited to 'net/gnu-finger')
-rw-r--r-- | net/gnu-finger/files/patch-ab | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/net/gnu-finger/files/patch-ab b/net/gnu-finger/files/patch-ab index 8aaf2aca7777..9ed000dee5ae 100644 --- a/net/gnu-finger/files/patch-ab +++ b/net/gnu-finger/files/patch-ab @@ -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 */ |