summaryrefslogtreecommitdiff
path: root/gl/secure_getenv.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-05-28 19:57:09 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-05-28 19:57:09 +0200
commitabcb1156857a34a6d733ca6c2fe23e8a965e5d82 (patch)
treef6265704c9d947debc6a05e242f2ae624697eea8 /gl/secure_getenv.c
parente999e1ac069cb46565a2698e674ca1cfb76dc24d (diff)
downloadgnutls-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.c6
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