40 lines
1002 B
Plaintext
40 lines
1002 B
Plaintext
$OpenBSD: patch-src_SerialConnection_c,v 1.3 2011/10/05 16:55:43 jasper Exp $
|
|
|
|
- Remove non-existing header:
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=656690#c3
|
|
- Add missing baud rates defines.
|
|
|
|
--- src/SerialConnection.c.orig Wed Oct 5 16:40:20 2011
|
|
+++ src/SerialConnection.c Wed Oct 5 17:54:06 2011
|
|
@@ -30,10 +30,29 @@
|
|
#include <unistd.h>
|
|
#include <gtk/gtk.h>
|
|
#include <gdk/gdk.h>
|
|
-#include <stropts.h>
|
|
#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))
|