[BACK]Return to patch-unix_plugins_SerialPlugin_sqUnixSerial.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / squeak-vm / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / squeak-vm / patches / patch-unix_plugins_SerialPlugin_sqUnixSerial.c (download)

Revision 1.1, Fri Dec 20 00:01:37 2019 UTC (23 months, 1 week ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD

Deal with custom bitrates on NetBSD. Always build Alsa support, it is
unconditionally at the moment anyway.

$NetBSD: patch-unix_plugins_SerialPlugin_sqUnixSerial.c,v 1.1 2019/12/20 00:01:37 joerg Exp $

--- unix/plugins/SerialPlugin/sqUnixSerial.c.orig	2019-12-19 23:17:52.826888467 +0000
+++ unix/plugins/SerialPlugin/sqUnixSerial.c
@@ -16,6 +16,11 @@
 #include <termios.h>
 #include <errno.h>
 
+#ifdef __NetBSD__
+#define B576000		576000U
+#define B1152000	1152000U
+#endif
+
 /*** Module variables ***/
 
 #define PORT_NAME_SIZE 64