diff options
author | Michael Cronenworth <mcronenworth@pdxinc.com> | 2014-11-11 11:18:17 -0600 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2014-11-12 11:58:59 +0100 |
commit | 7c2270eaaaf0e60e204cb81dd017bc89394f4f59 (patch) | |
tree | f52c4d29ee07c2d05b2eac06c5dc1f2dd24f5276 /common/compat.h | |
parent | bfb3bd47aa48983f5349479bca598403097ff81c (diff) | |
download | p11-kit-7c2270eaaaf0e60e204cb81dd017bc89394f4f59.tar.gz |
compat: Add definition for setenv for Win32
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
Diffstat (limited to 'common/compat.h')
-rw-r--r-- | common/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h index 6483d4f..acbccf9 100644 --- a/common/compat.h +++ b/common/compat.h @@ -165,6 +165,10 @@ p11_mmap * p11_mmap_open (const char *path, void p11_mmap_close (p11_mmap *map); +#ifndef HAVE_SETENV +#define setenv(n, v, z) _putenv_s(n, v) +#endif /* HAVE_SETENV */ + #endif /* OS_WIN32 */ /* ---------------------------------------------------------------------------- |