diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-26 21:37:12 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-26 21:37:12 +0000 |
commit | 81b0e8e247746ed9c30fb4dc8e911b38eedd38bc (patch) | |
tree | ff37df777d4a66aa3e9b5cf66d41df076cf15b43 /ext | |
parent | cda98c580e7fdc12f996d29436a13b282affc92e (diff) | |
download | sleepy_penguin-81b0e8e247746ed9c30fb4dc8e911b38eedd38bc.tar.gz |
This is already defined for most (if not all) Rubies when ruby.h is included.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/sleepy_penguin/init.c | 5 |
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" |