aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/string_posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/support/string_posix.c')
-rw-r--r--src/core/support/string_posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/support/string_posix.c b/src/core/support/string_posix.c
index 57832810ad..a6bb8058e6 100644
--- a/src/core/support/string_posix.c
+++ b/src/core/support/string_posix.c
@@ -33,7 +33,8 @@
/* Posix code for gpr snprintf support. */
-#ifndef _POSIX_C_SOURCE
+#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 200112L
+#undef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
#endif