Fix PR63758 by using the _NSGetEnviron() API on Darwin
authorRoland McGrath <roland@gnu.org>
Sun, 18 Oct 2015 10:33:37 +0000 (10:33 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 18 Oct 2015 10:33:37 +0000 (10:33 +0000)
commitefd40fc4161967fa7e0503f12162c8b28c85d632
tree5fc208bc3baf41e825404c97445ff45b58f1f042
parent37341412a50d7389802039e1890df3dca717b9db
Fix PR63758 by using the _NSGetEnviron() API on Darwin

include/

Roland McGrath  <roland@gnu.org>

PR other/63758
* environ.h: New file.

libiberty/

Roland McGrath  <roland@gnu.org>
Iain Sandoe  <iain@codesourcery.com>

PR other/63758
* pex-unix.c: Obtain the environment interface from settings in environ.h
rather than in-line code.  Update copyright date.
* setenv.c: Likewise.
* xmalloc.c: Likewise.

Co-Authored-By: Iain Sandoe <iain@codesourcery.com>
From-SVN: r228942
include/ChangeLog
include/environ.h [new file with mode: 0644]
libiberty/ChangeLog
libiberty/pex-unix.c
libiberty/setenv.c
libiberty/xmalloc.c