226edb2610
Ppower, short for 'Penguin Power', is a piece of UNIX software for controlling x10 home automation equipment connected to the computer via a cm11a interface. It can be used to turn things on and off and lights dim and bright. In addition to controlling the x10 devices, it can receive commands sent to the x10 devices from other sources such as an x10 remote transceiver and execute commands on your system in response. The virtue of ppower is that it is designed to run as a daemon at all times, keeping track of the status of the X10 system, taking action on events, queueing requests, and providing information on the events it is receiving to any interested clients.
19 lines
611 B
Text
19 lines
611 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2005/02/26 13:09:11 dsainty Exp $
|
|
|
|
NetBSD doesn't have the OFILL termios flag.
|
|
|
|
--- src/x10.c.orig 2000-02-06 14:37:08.000000000 +1300
|
|
+++ src/x10.c 2005-02-26 21:13:47.000000000 +1300
|
|
@@ -84,7 +84,11 @@
|
|
|
|
/* Accept raw data. */
|
|
termios.c_lflag &= ~(ICANON | ECHO | ISIG);
|
|
- termios.c_oflag &= ~(OPOST | ONLCR | OCRNL | ONLRET | OFILL);
|
|
+ termios.c_oflag &= ~(OPOST | ONLCR | OCRNL | ONLRET
|
|
+#ifdef OFILL
|
|
+ | OFILL
|
|
+#endif
|
|
+ );
|
|
termios.c_iflag &= ~(ICRNL | IXON | IXOFF | IMAXBEL);
|
|
|
|
/* Return after 1 character available */
|