aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Klempner <klempner@imsanet.org>2015-02-03 18:34:46 -0800
committerGravatar David Klempner <klempner@imsanet.org>2015-02-03 18:34:46 -0800
commit9db67cbfb0c02e445360c404361d61ec2ea151ee (patch)
tree7a113f426639cd9292e8b0c331c360b9cc2cb4a9
parentd44f8410dfeb114e05a44166ea0d9271438eac38 (diff)
We should ifdef check the define of _GNU_SOURCE
-rw-r--r--src/core/support/cpu_linux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/support/cpu_linux.c b/src/core/support/cpu_linux.c
index 508ebfaebd..e0df699217 100644
--- a/src/core/support/cpu_linux.c
+++ b/src/core/support/cpu_linux.c
@@ -31,7 +31,9 @@
*
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#undef /* _GNU_SOURCE */
#include <grpc/support/port_platform.h>