aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/env_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/support/env_win32.c')
-rw-r--r--src/core/support/env_win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/support/env_win32.c b/src/core/support/env_win32.c
index 8d2c61ae4c..10258283ba 100644
--- a/src/core/support/env_win32.c
+++ b/src/core/support/env_win32.c
@@ -38,7 +38,12 @@
#include "src/core/support/env.h"
#include "src/core/support/string.h"
+#ifdef __MINGW32__
+errno_t getenv_s(size_t *size_needed, char *buffer, size_t size,
+ const char *varname);
+#else
#include <stdlib.h>
+#endif
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>