diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-05-28 19:57:09 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-05-28 19:57:09 +0200 |
commit | abcb1156857a34a6d733ca6c2fe23e8a965e5d82 (patch) | |
tree | f6265704c9d947debc6a05e242f2ae624697eea8 /gl/secure_getenv.c | |
parent | e999e1ac069cb46565a2698e674ca1cfb76dc24d (diff) | |
download | gnutls-abcb1156857a34a6d733ca6c2fe23e8a965e5d82.tar.gz |
gl: secure_getenv() will behave as getenv on windows
Diffstat (limited to 'gl/secure_getenv.c')
-rw-r--r-- | gl/secure_getenv.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gl/secure_getenv.c b/gl/secure_getenv.c index 896ceeefeb..029441ed06 100644 --- a/gl/secure_getenv.c +++ b/gl/secure_getenv.c @@ -24,7 +24,11 @@ # include <unistd.h> # else # undef issetugid -# define issetugid() 1 +# ifdef _WIN32 +# define issetugid() 0 +# else +# define issetugid() 1 +# endif # endif #endif |