mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 18:56:43 +00:00
Cleanup of "extern char **environ" declaration
llvm-svn: 327904
This commit is contained in:
parent
a21558897b
commit
edeeb58f2a
@ -85,13 +85,11 @@ extern "C" {
|
||||
#include <sys/umtx.h>
|
||||
}
|
||||
#include <sys/thr.h>
|
||||
extern char **environ; // provided by crt1
|
||||
#endif // SANITIZER_FREEBSD
|
||||
|
||||
#if SANITIZER_NETBSD
|
||||
#include <limits.h> // For NAME_MAX
|
||||
#include <sys/sysctl.h>
|
||||
extern char **environ; // provided by crt1
|
||||
#include <sys/exec.h>
|
||||
extern struct ps_strings *__ps_strings;
|
||||
#endif // SANITIZER_NETBSD
|
||||
@ -99,15 +97,17 @@ extern struct ps_strings *__ps_strings;
|
||||
#if SANITIZER_SOLARIS
|
||||
#include <stdlib.h>
|
||||
#include <thread.h>
|
||||
|
||||
extern char **_environ;
|
||||
#define environ _environ
|
||||
#endif
|
||||
|
||||
#if !SANITIZER_ANDROID
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
|
||||
#if SANITIZER_SOLARIS
|
||||
#define environ _environ
|
||||
#endif
|
||||
extern char **_environ;
|
||||
|
||||
#if SANITIZER_LINUX
|
||||
// <linux/time.h>
|
||||
struct kernel_timeval {
|
||||
|
Loading…
x
Reference in New Issue
Block a user