Skip to content

Commit d67f3e4

Browse files
author
v01dxyz
committed
office-ispell: Use a POSIX macro to enable including <termios.h>
Compatible with musl in particular. <unistd.h> is already included in "config.h". FreeBSD/NetBSD/OpenBSD 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
1 parent 286ead4 commit d67f3e4

File tree

1 file changed

+1
-1
lines changed
  • MultiSource/Benchmarks/MiBench/office-ispell

1 file changed

+1
-1
lines changed

MultiSource/Benchmarks/MiBench/office-ispell/term.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static char Rcs_Id[] =
7676
#include "msgs.h"
7777
#include <signal.h>
7878

79-
#if defined(__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
79+
#if defined(_POSIX_VERSION) || defined(__FreeBSD__) || defined(__NetBSD__) || \
8080
defined(__OpenBSD__) || defined(__APPLE__) || \
8181
(defined(__sun__) && defined(__svr4__))
8282
#include <termios.h>

0 commit comments

Comments
 (0)