Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include: explicitly define environ for BSDs
In file included from interop/PassItem.cpp:11: include/subprocess.h:821:90: error: use of undeclared identifier 'environ' if (int err{::posix_spawnp(&pid, sh.argv()[0], action.get(), nullptr, sh.argv(), environ)}; err != 0) ^ See also https://git.musl-libc.org/cgit/musl/commit/?id=d200bd727bea https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_02_02 says: > All identifiers in this volume of POSIX.1-2017, except `environ`, > are defined in at least one of the headers, as shown in XBD Headers.
- Loading branch information