aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/support/file_posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/support/file_posix.c b/src/core/support/file_posix.c
index a763fbcda2..21a985012e 100644
--- a/src/core/support/file_posix.c
+++ b/src/core/support/file_posix.c
@@ -33,7 +33,8 @@
/* Posix code for gpr fdopen and mkstemp support. */
-#ifndef _POSIX_C_SOURCE
+#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 200112L
+#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
#endif