You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
453 B

  1. --- a/src/serialport_linux.cpp
  2. +++ b/src/serialport_linux.cpp
  3. @@ -1,8 +1,13 @@
  4. #if defined(__linux__)
  5. #include <sys/ioctl.h>
  6. +#if defined(__powerpc__) || defined(__powerpc64__)
  7. +#include <asm-generic/ioctls.h>
  8. +#include <asm-generic/termbits.h>
  9. +#else
  10. #include <asm/ioctls.h>
  11. #include <asm/termbits.h>
  12. +#endif
  13. // Uses the termios2 interface to set nonstandard baud rates
  14. int linuxSetCustomBaudRate(const int fd, const unsigned int baudrate) {