Skip to content

Commit

Permalink
Merge pull request #4067 from Avinash2198/ppc-changes-tree
Browse files Browse the repository at this point in the history
Fix : environ on PPC64LE
  • Loading branch information
rwy7 authored Jun 27, 2019
2 parents 1f06f69 + e999fb4 commit 5753268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion port/unix/auxv.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* suffer the consequences if you're an ingenious fool and dlopen this library
* after you've moved the env via a call to setenv! Just don't do it. */

#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
Expand All @@ -45,7 +46,7 @@ static char **saved_environ = NULL;
void __attribute__ ((__constructor__)) __attribute__ ((__visibility__ ("hidden")))
libauxv_init (void)
{
saved_environ = __environ;
saved_environ = environ;
}

/* Scan to the end of the saved environ to find the aux vector. */
Expand Down

0 comments on commit 5753268

Please sign in to comment.