diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-18 17:26:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-01-18 17:26:32 +0000 |
commit | da422d63cf72f05137326de21e931e64108f9636 (patch) | |
tree | 8b8e3d1d0e39009f1f49eb8360faf66333019031 /main/statserial/statserial-c.patch | |
parent | 2ce356292507a5ccfff852efb2a97c2589f4f8e4 (diff) | |
download | aports-da422d63cf72f05137326de21e931e64108f9636.tar.bz2 aports-da422d63cf72f05137326de21e931e64108f9636.tar.xz |
main/statserial: moved from testing
ref #1533
Diffstat (limited to 'main/statserial/statserial-c.patch')
-rw-r--r-- | main/statserial/statserial-c.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/statserial/statserial-c.patch b/main/statserial/statserial-c.patch new file mode 100644 index 0000000000..448a6b0b62 --- /dev/null +++ b/main/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); |