diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-18 19:03:08 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-18 19:03:08 +0300 |
commit | fd914239dce82231effd9aeb0b30f989129d60a0 (patch) | |
tree | 71c12bee057c2b4d6889a18a6a0e2395b48b5299 /libc/debian/patches | |
parent | 198465e4df10c8d2d13549ceeba3143ec4646d32 (diff) | |
download | illumos-packaging-fd914239dce82231effd9aeb0b30f989129d60a0.tar.gz |
libc: add cfsetspeed
Diffstat (limited to 'libc/debian/patches')
-rw-r--r-- | libc/debian/patches/libc-add-cfsetspeed.patch | 67 | ||||
-rw-r--r-- | libc/debian/patches/series | 1 |
2 files changed, 68 insertions, 0 deletions
diff --git a/libc/debian/patches/libc-add-cfsetspeed.patch b/libc/debian/patches/libc-add-cfsetspeed.patch new file mode 100644 index 0000000..0bde235 --- /dev/null +++ b/libc/debian/patches/libc-add-cfsetspeed.patch @@ -0,0 +1,67 @@ +Index: libc/usr/src/head/termios.h +=================================================================== +--- libc.orig/usr/src/head/termios.h ++++ libc/usr/src/head/termios.h +@@ -36,6 +36,7 @@ __BEGIN_DECLS + + #if defined(_BSD_SOURCE) || defined(__EXTENSIONS__) + void cfmakeraw (struct termios *); ++int cfsetspeed(struct termios *, speed_t); + #endif + + __END_DECLS +Index: libc/usr/src/lib/libc/amd64/Makefile +=================================================================== +--- libc.orig/usr/src/lib/libc/amd64/Makefile ++++ libc/usr/src/lib/libc/amd64/Makefile +@@ -360,6 +360,7 @@ PORTGEN= \ + cfgetispeed.o \ + cfgetospeed.o \ + cfmakeraw.o \ ++ cfsetspeed.o \ + cfree.o \ + cfsetispeed.o \ + cfsetospeed.o \ +Index: libc/usr/src/lib/libc/i386/Makefile.com +=================================================================== +--- libc.orig/usr/src/lib/libc/i386/Makefile.com ++++ libc/usr/src/lib/libc/i386/Makefile.com +@@ -395,6 +395,7 @@ PORTGEN= \ + cfree.o \ + cfsetispeed.o \ + cfsetospeed.o \ ++ cfsetspeed.o \ + cftime.o \ + clock.o \ + closedir.o \ +Index: libc/usr/src/lib/libc/port/gen/cfsetspeed.c +=================================================================== +--- /dev/null ++++ libc/usr/src/lib/libc/port/gen/cfsetspeed.c +@@ -0,0 +1,14 @@ ++/* ++ * Public Domain. ++ */ ++ ++#include "termios.h" ++ ++int cfsetspeed (struct termios *termios_p, speed_t speed) ++{ ++ int rc; ++ rc = cfsetispeed (termios_p, speed); ++ if (0 == rc) ++ rc = cfsetospeed (termios_p, speed); ++ return rc; ++} +Index: libc/usr/src/lib/libc/port/mapfile-vers +=================================================================== +--- libc.orig/usr/src/lib/libc/port/mapfile-vers ++++ libc/usr/src/lib/libc/port/mapfile-vers +@@ -268,6 +268,7 @@ SYMBOL_VERSION DYSON_1 { + __gnu_timegm; + _so_accept4; + cfmakeraw; ++ cfsetspeed; + error; + error_at_line; + error_message_count; diff --git a/libc/debian/patches/series b/libc/debian/patches/series index 1b760cc..0067aac 100644 --- a/libc/debian/patches/series +++ b/libc/debian/patches/series @@ -140,3 +140,4 @@ head-make-secondary.patch librpcsvc-uts-rpcsvc.patch localedef-prog-only.patch illumos-6993.patch +libc-add-cfsetspeed.patch |