1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 01:09:37 +01:00
nix/src/libutil/unix/environment-variables.cc
John Ericson ef2d10f7e7 Clean up env var logic in preparation for Windows
It's a little weird we don't check the return status for these, but
changing that would introduce risk so I did not.

Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
2024-04-04 18:17:12 -04:00

12 lines
168 B
C++

#include <cstdlib>
#include "environment-variables.hh"
namespace nix {
int setEnv(const char * name, const char * value)
{
return ::setenv(name, value, 1);
}
}