LibC: Make environ a weak alias
If user program defines its own global `environ` variable it will still work :)
This commit is contained in:
parent
176693dd5a
commit
88c9f6d233
|
@ -16,7 +16,8 @@
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
char** environ;
|
char** __environ;
|
||||||
|
extern char** environ __attribute__((weak, alias("__environ")));
|
||||||
|
|
||||||
extern void _init_malloc();
|
extern void _init_malloc();
|
||||||
extern void _init_stdio();
|
extern void _init_stdio();
|
||||||
|
|
Loading…
Reference in New Issue