mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
node-serialport-bindings: add new package - fix powerpc build fail
fix powerpc 'node-serialport' package build fail divide node-serialport' into node-serialport' and node-serialport-bindings powerpc termios2 issue ref: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1619446 Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
--- a/src/serialport_linux.cpp
|
||||
+++ b/src/serialport_linux.cpp
|
||||
@@ -1,8 +1,13 @@
|
||||
#if defined(__linux__)
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
+#if defined(__powerpc__) || defined(__powerpc64__)
|
||||
+#include <asm-generic/ioctls.h>
|
||||
+#include <asm-generic/termbits.h>
|
||||
+#else
|
||||
#include <asm/ioctls.h>
|
||||
#include <asm/termbits.h>
|
||||
+#endif
|
||||
|
||||
// Uses the termios2 interface to set nonstandard baud rates
|
||||
int linuxSetCustomBaudRate(const int fd, const unsigned int baudrate) {
|
||||
Reference in New Issue
Block a user