From e7cd4c506e43337de10d7775a28a8f4db748b8e1 Mon Sep 17 00:00:00 2001 From: Kelly Martines Date: Mon, 25 Oct 2021 19:15:24 +0000 Subject: [PATCH] Build source for unix platforms, instead of just linux Changed: if defined(__linux__) to: if (defined(__linux__) || defined(__unix__)) --- src/impl/list_ports/list_ports_linux.cc | 2 +- tests/unix_serial_tests.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/impl/list_ports/list_ports_linux.cc b/src/impl/list_ports/list_ports_linux.cc index db2afb2c..6fd36561 100644 --- a/src/impl/list_ports/list_ports_linux.cc +++ b/src/impl/list_ports/list_ports_linux.cc @@ -1,4 +1,4 @@ -#if defined(__linux__) +#if (defined(__linux__) || defined(__unix__)) /* * Copyright (c) 2014 Craig Lilley diff --git a/tests/unix_serial_tests.cc b/tests/unix_serial_tests.cc index c34868a2..dd710cc0 100644 --- a/tests/unix_serial_tests.cc +++ b/tests/unix_serial_tests.cc @@ -27,7 +27,7 @@ void loop() #include "serial/serial.h" -#if defined(__linux__) +#if (defined(__linux__) || defined(__unix__)) #include #else #include