diff options
| author | Francesco Colista <francesco.colista@gmail.com> | 2013-01-03 17:47:52 +0000 |
|---|---|---|
| committer | Francesco Colista <francesco.colista@gmail.com> | 2013-01-03 17:48:55 +0000 |
| commit | ab4948d160bf7a9db70657f169475ea46bc21a3b (patch) | |
| tree | 9cd48d635362af3063373c2247991115ab958ba2 /testing/statserial/statserial-c.patch | |
| parent | 43c4090824288439314ee365589a957eac4ef5b8 (diff) | |
| download | aports-ab4948d160bf7a9db70657f169475ea46bc21a3b.tar.bz2 aports-ab4948d160bf7a9db70657f169475ea46bc21a3b.tar.xz | |
testing/statserial: new aport. Fixes #1533
Diffstat (limited to 'testing/statserial/statserial-c.patch')
| -rw-r--r-- | testing/statserial/statserial-c.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/statserial/statserial-c.patch b/testing/statserial/statserial-c.patch new file mode 100644 index 0000000000..448a6b0b62 --- /dev/null +++ b/testing/statserial/statserial-c.patch @@ -0,0 +1,20 @@ +--- statserial-1.1.orig/statserial.c ++++ statserial-1.1/statserial.c +@@ -42,7 +42,7 @@ + + /* global variables */ + char device[255]; /* name of device to open */ +-const char *defaultDevice = "/dev/cua1"; /* default device if none specified on command line */ ++const char *defaultDevice = "/dev/ttyS1"; /* default device if none specified on command line */ + int n_option = 0; /* set if -n option is used */ + int d_option = 0; /* set if -d option is used */ + int x_option = 0; /* set if -x option is used */ +@@ -118,7 +118,7 @@ + parse_args(argc, argv); + + /* open port */ +- fd = open(device, O_RDONLY); ++ fd = open(device, O_RDONLY | O_NONBLOCK | O_NOCTTY); + if (fd == -1) { + char s[255]; + sprintf(s, "statserial: can't open device `%s'", device); |
