]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tools: environ is not defined in OS X and BSD
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 23 Aug 2024 17:33:22 +0000 (19:33 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 23 Aug 2024 17:39:57 +0000 (19:39 +0200)
commit7a03ab426f80e1e1840dc94b0b94464f6a439541
treef4e7bd5b31db49d33173214beac29f9badfb7bbc
parent28ca7fc594ca643895e2a28bb3e3ed021475a704
BUILD: tools: environ is not defined in OS X and BSD

Add extern char **environ which in order to build the new functions to
manipulate the environment.

Indeed the variable environ is not required to be declared by POSIX, so
it need to be declared manually:

"In addition, the following variable, which must be declared by the user if it is to be used directly:

extern char **environ;"

https://pubs.opengroup.org/onlinepubs/9699919799/functions/environ.html
src/tools.c