PERFORCE change 147726 for review

Ed Schouten ed at FreeBSD.org
Mon Aug 18 14:46:46 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=147726

Change 147726 by ed at ed_dull on 2008/08/18 14:46:04

	Only set PTS_EXTERNAL when we're really to include the pty(4)
	driver. It makes pts(4) almost 10% smaller.

Affected files ...

.. //depot/projects/mpsafetty/sys/conf/options#5 edit
.. //depot/projects/mpsafetty/sys/kern/tty_pts.c#11 edit

Differences ...

==== //depot/projects/mpsafetty/sys/conf/options#5 (text+ko) ====

@@ -656,6 +656,7 @@
 DEV_BPF			opt_bpf.h
 DEV_MCA			opt_mca.h
 DEV_CARP		opt_carp.h
+DEV_PTY			opt_tty.h
 DEV_SPLASH		opt_splash.h
 
 # EISA support

==== //depot/projects/mpsafetty/sys/kern/tty_pts.c#11 (text+ko) ====

@@ -30,10 +30,14 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
+#include "opt_tty.h"
+
 /* Add compatibility bits for FreeBSD. */
 #define PTS_COMPAT
+#ifdef DEV_PTY
 /* Add /dev/ptyXX compat bits. */
 #define PTS_EXTERNAL
+#endif /* DEV_PTY */
 /* Add bits to make Linux binaries work. */
 #define PTS_LINUX
 


More information about the p4-projects mailing list