about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-26 21:37:12 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-26 21:37:12 +0000
commit81b0e8e247746ed9c30fb4dc8e911b38eedd38bc (patch)
treeff37df777d4a66aa3e9b5cf66d41df076cf15b43
parentcda98c580e7fdc12f996d29436a13b282affc92e (diff)
downloadsleepy_penguin-81b0e8e247746ed9c30fb4dc8e911b38eedd38bc.tar.gz
This is already defined for most (if not all) Rubies when ruby.h
is included.
-rw-r--r--ext/sleepy_penguin/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/sleepy_penguin/init.c b/ext/sleepy_penguin/init.c
index 9b4f31c..90eddbd 100644
--- a/ext/sleepy_penguin/init.c
+++ b/ext/sleepy_penguin/init.c
@@ -1,5 +1,8 @@
-#define _GNU_SOURCE
 #include <ruby.h>
+#ifndef _GNU_SOURCE
+#  define _GNU_SOURCE /* TODO: confirm this is needed */
+#endif
+
 #include <unistd.h>
 #include <sys/types.h>
 #include "git_version.h"