1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 03:34:53 +08:00

Build source for unix platforms, instead of just linux

Changed: if defined(__linux__) to: if (defined(__linux__) || defined(__unix__))
This commit is contained in:
Kelly Martines 2021-10-25 19:15:24 +00:00
parent 33e5a31ab7
commit e7cd4c506e
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#if defined(__linux__)
#if (defined(__linux__) || defined(__unix__))
/*
* Copyright (c) 2014 Craig Lilley <cralilley@gmail.com>

View File

@ -27,7 +27,7 @@ void loop()
#include "serial/serial.h"
#if defined(__linux__)
#if (defined(__linux__) || defined(__unix__))
#include <pty.h>
#else
#include <util.h>