Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions libserialport_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@
#include <IOKit/serial/ioss.h>
#include <sys/syslimits.h>
#include <mach/mach_time.h>
#if MAC_OS_X_VERSION_MAX_ALLOWED < 120000 /* Before macOS 12 */
#define kIOMainPortDefault kIOMasterPortDefault
#endif
/* kIOMainPortDefault (kIOMasterPortDefault <= macOS 11) is a
* synonym for NULL. Fixes segfault when building on macOS 12+
* with an older macOS deployment target. */
#define kIOMainPortDefault 0
#endif
#ifdef __linux__
#include <dirent.h>
Expand Down