$NetBSD: patch-libiberty_pex-unix.c,v 1.1 2025/06/15 13:19:52 js Exp $ --- libiberty/pex-unix.c.orig 2025-06-15 13:09:05.276043172 +0000 +++ libiberty/pex-unix.c @@ -42,9 +42,7 @@ extern int errno; #include -#ifdef HAVE_FCNTL_H #include -#endif #ifdef HAVE_SYS_WAIT_H #include #endif @@ -58,7 +56,7 @@ extern int errno; #ifdef HAVE_PROCESS_H #include #endif -#ifdef HAVE_SPAWN_H +#if defined(HAVE_SPAWN_H) || defined(__linux__) #include #endif