Skip to content

No TERMIOS2 on PowerPC platforms #75

@bobpaul

Description

@bobpaul

This builds and runs fun on PPC, PPC64, and PPC64LE, but I had to patch the CMakeLists.txt with:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4fe0ea2..0ddb3a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -68,8 +68,6 @@ else()
                 ${CMAKE_SOURCE_DIR}/vendor/libserialport/linux_termios.c)
         target_compile_definitions(libblisp_obj PRIVATE
                 LIBSERIALPORT_ATBUILD
-                HAVE_TERMIOS2_SPEED
-                HAVE_STRUCT_TERMIOS2
                 HAVE_DECL_BOTHER
                 "SP_API=__attribute__((visibility(\"default\")))"
                 "SP_PRIV=__attribute__((visibility(\"hidden\")))")

I'm not sure the proper way to make this conditional without simply introducing a manual override (ex maybe -DUSE_TERMIOS removes these).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions