mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
Merge pull request #6792 from barracuda156/apple
process.c: fix environ for macOS
This commit is contained in:
@@ -15,7 +15,12 @@
|
||||
#include "process.h"
|
||||
#include "strlist.h"
|
||||
|
||||
extern char **environ;
|
||||
#ifdef __APPLE__
|
||||
#include <crt_externs.h>
|
||||
#define environ (*_NSGetEnviron())
|
||||
#else
|
||||
extern char **environ;
|
||||
#endif
|
||||
|
||||
struct git_process {
|
||||
char **args;
|
||||
|
||||
Reference in New Issue
Block a user