Skip to content

Commit

Permalink
Merge pull request #3708 from p01arst0rm/extern-char-fix
Browse files Browse the repository at this point in the history
appended ' __attribute__((weak)); ' to 'extern char * * environ '
  • Loading branch information
edolstra committed Jun 17, 2020
2 parents 9ce994d + e9970a3 commit ea5bcfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libutil/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#endif


extern char * * environ;
extern char * * environ __attribute__((weak));


namespace nix {
Expand Down
2 changes: 1 addition & 1 deletion src/nix-build/nix-build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
using namespace nix;
using namespace std::string_literals;

extern char * * environ;
extern char * * environ __attribute__((weak));

/* Recreate the effect of the perl shellwords function, breaking up a
* string into arguments like a shell word, including escapes
Expand Down
2 changes: 1 addition & 1 deletion src/nix/command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "nixexpr.hh"
#include "profiles.hh"

extern char * * environ;
extern char * * environ __attribute__((weak));

namespace nix {

Expand Down

0 comments on commit ea5bcfb

Please sign in to comment.