Skip to content

Commit

Permalink
office-ispell: Use a POSIX macro to enable including <termios.h>
Browse files Browse the repository at this point in the history
Compatible with musl in particular. <unistd.h> is already included in
"config.h".

FreeBSD/NetBSD/OpenBSD/Apple (XNU) provides the macro too but are left
untouched as I don't have the means to test it.

Duplicate of an abandoned patch from 2015: https://reviews.llvm.org/D13938
  • Loading branch information
v01dxyz committed Jun 5, 2024
1 parent 286ead4 commit d5d46bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MultiSource/Benchmarks/MiBench/office-ispell/term.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static char Rcs_Id[] =
#include "msgs.h"
#include <signal.h>

#if defined(__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
#if defined(_POSIX_VERSION) || defined(__FreeBSD__) || defined(__NetBSD__) || \
defined(__OpenBSD__) || defined(__APPLE__) || \
(defined(__sun__) && defined(__svr4__))
#include <termios.h>
Expand Down

0 comments on commit d5d46bb

Please sign in to comment.