]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gl: secure_getenv() will behave as getenv on windows
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 28 May 2016 17:57:09 +0000 (19:57 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 28 May 2016 17:57:09 +0000 (19:57 +0200)
gl/secure_getenv.c

index 896ceeefebf6edf7d8427ab98f9a5b58f1fd2677..029441ed0634fb518f418bf930658e5a6ac438f7 100644 (file)
 #  include <unistd.h>
 # else
 #  undef issetugid
-#  define issetugid() 1
+#  ifdef _WIN32
+#   define issetugid() 0
+#  else
+#   define issetugid() 1
+#  endif
 # endif
 #endif