1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-17 11:17:36 +00:00

LibCore: Explicitly declare environ in Process.cpp to unbreak macOS

This commit is contained in:
Andreas Kling 2021-08-06 01:29:09 +02:00
parent 5d3b452897
commit f5c3225286

View file

@ -8,12 +8,13 @@
#include <LibCore/Process.h> #include <LibCore/Process.h>
#include <errno.h> #include <errno.h>
#include <spawn.h> #include <spawn.h>
#include <unistd.h>
#ifdef __serenity__ #ifdef __serenity__
# include <serenity.h> # include <serenity.h>
#endif #endif
extern char** environ;
namespace Core { namespace Core {
pid_t Process::spawn(StringView path) pid_t Process::spawn(StringView path)