Explorar el Código

LibCore: Don't use execvpe on Solaris

nipos hace 2 años
padre
commit
72accd3a24
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Libraries/LibCore/System.cpp

+ 1 - 1
Userland/Libraries/LibCore/System.cpp

@@ -1197,7 +1197,7 @@ ErrorOr<void> exec(StringView filename, ReadonlySpan<StringView> arguments, Sear
         envp[environment->size()] = nullptr;
         envp[environment->size()] = nullptr;
 
 
         if (search_in_path == SearchInPath::Yes && !filename.contains('/')) {
         if (search_in_path == SearchInPath::Yes && !filename.contains('/')) {
-#    if defined(AK_OS_MACOS) || defined(AK_OS_FREEBSD)
+#    if defined(AK_OS_MACOS) || defined(AK_OS_FREEBSD) || defined(AK_OS_SOLARIS)
             // These BSDs don't support execvpe(), so we'll have to manually search the PATH.
             // These BSDs don't support execvpe(), so we'll have to manually search the PATH.
             ScopedValueRollback errno_rollback(errno);
             ScopedValueRollback errno_rollback(errno);