From 8e5381f67453d6d644763f297523a75bc2ded36e Mon Sep 17 00:00:00 2001 From: Armin Date: Sun, 22 Nov 2026 06:25:26 +0100 Subject: [PATCH] Fix FreeBSD build by including libutil.h for openpty --- murx.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/murx.c b/murx.c index b328ae6..5c1fd1e 100644 --- a/murx.c +++ b/murx.c @@ -58,10 +58,11 @@ #include #include #include -/* openpty(3) lives in on Linux and glibc, in on the BSDs - and macOS. */ -#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || \ - defined(__OpenBSD__) || defined(__APPLE__) +/* openpty(3) lives in on Linux and glibc, in on FreeBSD + and DragonFly, and in on the other BSDs and macOS. */ +#if defined(__FreeBSD__) || defined(__DragonFly__) +#include +#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) #include #else #include