From d5d46bbfc454257c0040c95df73c5d5bccfba9f2 Mon Sep 17 00:00:00 2001 From: v01dxyz Date: Wed, 5 Jun 2024 19:46:26 +0200 Subject: [PATCH] office-ispell: Use a POSIX macro to enable including Compatible with musl in particular. 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 --- MultiSource/Benchmarks/MiBench/office-ispell/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MultiSource/Benchmarks/MiBench/office-ispell/term.c b/MultiSource/Benchmarks/MiBench/office-ispell/term.c index 5fc7401b7a..df6cd333a7 100644 --- a/MultiSource/Benchmarks/MiBench/office-ispell/term.c +++ b/MultiSource/Benchmarks/MiBench/office-ispell/term.c @@ -76,7 +76,7 @@ static char Rcs_Id[] = #include "msgs.h" #include -#if defined(__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ +#if defined(_POSIX_VERSION) || defined(__FreeBSD__) || defined(__NetBSD__) || \ defined(__OpenBSD__) || defined(__APPLE__) || \ (defined(__sun__) && defined(__svr4__)) #include