openbsd-ports/x11/gnome/moserial/patches/patch-src_SerialConnection_c
2011-09-12 07:36:49 +00:00

34 lines
827 B
Plaintext

$OpenBSD: patch-src_SerialConnection_c,v 1.2 2011/09/12 07:36:49 jasper Exp $
Add missing baud rates defines.
--- src/SerialConnection.c.orig Thu Sep 1 14:52:57 2011
+++ src/SerialConnection.c Thu Sep 1 14:53:31 2011
@@ -33,6 +33,26 @@
#include <sys/ioctl.h>
#include <glib/gi18n-lib.h>
+/* Add defines for various non-standard speeds. */
+#ifndef B460800
+#define B460800 460800
+#endif
+
+#ifndef B576000
+#define B576000 576000
+#endif
+
+#ifndef B921600
+#define B921600 921600
+#endif
+
+#ifndef B1000000
+#define B1000000 1000000
+#endif
+
+#ifndef B2000000
+#define B2000000 2000000
+#endif
#define MOSERIAL_TYPE_SERIAL_CONNECTION (moserial_serial_connection_get_type ())
#define MOSERIAL_SERIAL_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MOSERIAL_TYPE_SERIAL_CONNECTION, moserialSerialConnection))