mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +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:
parent
33e5a31ab7
commit
e7cd4c506e
@ -1,4 +1,4 @@
|
||||
#if defined(__linux__)
|
||||
#if (defined(__linux__) || defined(__unix__))
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014 Craig Lilley <cralilley@gmail.com>
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user