Module Name:    xsrc
Committed By:   tsutsui
Date:           Wed May 18 21:29:39 UTC 2011

Modified Files:
        xsrc/xfree/xc/programs/xconsole: xconsole.c
        xsrc/xfree/xc/programs/xterm: main.c

Log Message:
Include <util.h> for openpty(3) prototype decl.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/xfree/xc/programs/xconsole/xconsole.c
cvs rdiff -u -r1.10 -r1.11 xsrc/xfree/xc/programs/xterm/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/xfree/xc/programs/xconsole/xconsole.c
diff -u xsrc/xfree/xc/programs/xconsole/xconsole.c:1.3 xsrc/xfree/xc/programs/xconsole/xconsole.c:1.4
--- xsrc/xfree/xc/programs/xconsole/xconsole.c:1.3	Fri Mar 18 14:55:17 2005
+++ xsrc/xfree/xc/programs/xconsole/xconsole.c	Wed May 18 21:29:39 2011
@@ -172,6 +172,9 @@
 #endif
 
 #ifdef USE_PTY
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#include <util.h>
+#endif
 static int get_pty(int *pty, int *tty, char *ttydev, char *ptydev);
 #endif
 #ifdef USE_OSM

Index: xsrc/xfree/xc/programs/xterm/main.c
diff -u xsrc/xfree/xc/programs/xterm/main.c:1.10 xsrc/xfree/xc/programs/xterm/main.c:1.11
--- xsrc/xfree/xc/programs/xterm/main.c:1.10	Fri Mar 18 14:55:18 2005
+++ xsrc/xfree/xc/programs/xterm/main.c	Wed May 18 21:29:39 2011
@@ -376,7 +376,7 @@
 #include <local/openpty.h>
 #endif /* PUCC_PTYD */
 
-#ifdef __OpenBSD__
+#if defined(__NetBSD__) || defined(__OpenBSD__)
 #include <util.h>
 #endif
 

Reply via email to