summaryrefslogtreecommitdiff
path: root/net/rmsg/files/patch-ac
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2013-04-23 21:56:07 +0000
committerMikhail Teterin <mi@FreeBSD.org>2013-04-23 21:56:07 +0000
commitbe029966f113da45e2c5bd83b84d6eb736d4ae02 (patch)
treeebd543f2fde5e5dd7ea1e4ad5a2364502b355dd0 /net/rmsg/files/patch-ac
parentpkgconfig:build will suffice. (diff)
Unbreak -- compiles here (9.1/amd64). While at it, patch the ancient
code up so it compiles cleaner.
Diffstat (limited to 'net/rmsg/files/patch-ac')
-rw-r--r--net/rmsg/files/patch-ac25
1 files changed, 20 insertions, 5 deletions
diff --git a/net/rmsg/files/patch-ac b/net/rmsg/files/patch-ac
index 201ca5602b93..5defeda51870 100644
--- a/net/rmsg/files/patch-ac
+++ b/net/rmsg/files/patch-ac
@@ -1,5 +1,5 @@
-*** rmsg.h.orig Mon Oct 9 13:17:57 1995
---- rmsg.h Mon Oct 9 13:31:18 1995
+*** rmsg.h Sat Jun 26 17:05:59 1993
+--- rmsg.h Tue Apr 23 17:18:46 2013
***************
*** 11,16 ****
--- 11,20 ----
@@ -14,8 +14,20 @@
# define index strchr
# define rindex strrchr
***************
-*** 46,54 ****
---- 50,67 ----
+*** 46,57 ****
+ #define PATHLEN 1024
+ #define LINELEN 1024
+
+ #define UTMP "/etc/utmp"
+ #define UTMP_TTY_SIZE 8
+ #define UTMP_NAME_SIZE 8
+
+ struct command {
+! char *token; /* Command name, e.g. msglast */
+ int (*function)(); /* Function which it is supposed to run */
+ };
+
+--- 50,70 ----
#define PATHLEN 1024
#define LINELEN 1024
@@ -33,4 +45,7 @@
+ #endif
struct command {
- char *token; /* Command name, e.g. msglast */
+! const char *token; /* Command name, e.g. msglast */
+ int (*function)(); /* Function which it is supposed to run */
+ };
+