From 6fc8d99e21fb138ee71f5a9d32e9b9dbbfb0a414 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 29 Jan 2026 15:04:23 -0500 Subject: [PATCH] libroot: Expose exect() only if building with BeOS ABI compatibility. It's non-standard and redundant, but was in the public R5 headers, so we need to keep it around at least for compatibility. --- src/system/libroot/posix/unistd/exec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/libroot/posix/unistd/exec.cpp b/src/system/libroot/posix/unistd/exec.cpp index 3e56b127d8..73d006b6bb 100644 --- a/src/system/libroot/posix/unistd/exec.cpp +++ b/src/system/libroot/posix/unistd/exec.cpp @@ -240,7 +240,7 @@ execle(const char* path, const char* arg, ... /*, char** env */) return do_exec(path, (char* const*)args, env, false); } -// TODO: remove this again if possible +#ifdef __HAIKU_BEOS_COMPATIBLE extern int exect(const char *path, char *const *argv); int @@ -248,3 +248,4 @@ exect(const char* path, char* const* argv) { return execv(path, argv); } +#endif