blob: a5ef99005bc3c028493686f095d80e66c87f87f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-client_defs.h,v 1.2 2015/11/07 22:19:46 dholland Exp $
- Don't rely on __unused from netbsd's <cdefs.h> existing.
- Use a more portable username size symbol for the sake of Solaris.
- Also include limits.h to make sure that symbol is defined.
--- client/defs.h.orig 2013-01-02 23:00:42.000000000 +0000
+++ client/defs.h
@@ -24,6 +24,11 @@
#include <poll.h>
#include <curses.h>
#include <netdb.h>
+#include <limits.h>
+
+#ifndef __unused
+#define __unused __attribute__((__unused__))
+#endif
int msgpending;
int killedchild;
@@ -38,7 +43,7 @@ char *mytty; /* tty he's on
char *home; /* home directory */
const char *shell; /* preferred shell */
char myhost[MAXHOSTNAMELEN]; /* local host name */
-char realname[MAXLOGNAME]; /* from password file */
+char realname[LOGIN_NAME_MAX]; /* from password file */
int maxx; /* max legal x coordinate */
int maxy; /* max legal y coordinate */
int stream; /* stream socket filedes */
|