about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-24 17:06:56 -0700
committerEric Wong <normalperson@yhbt.net>2011-06-24 17:10:18 -0700
commit1e7dc89cc38c5dec0b63ac452b23141297701f88 (patch)
tree5cd17cf2dc2f1a10efe909682b79f2adc84af7e7
parent880dbec44c13e3d5a6b858fc2212714f122b71c6 (diff)
downloadraindrops-1e7dc89cc38c5dec0b63ac452b23141297701f88.tar.gz
This appears to cause __BSD_VISIBLE to not be defined,
which is required for MAP_ANON to be visible in
sys/mman.h

Thanks for Aleksandar Simic for the hint and Troex Nevelin
for the bug report!
-rw-r--r--ext/raindrops/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/raindrops/extconf.rb b/ext/raindrops/extconf.rb
index 825625d..9f5de95 100644
--- a/ext/raindrops/extconf.rb
+++ b/ext/raindrops/extconf.rb
@@ -7,7 +7,7 @@ have_func('munmap', 'sys/mman.h') or abort 'munmap() not found'
 $CPPFLAGS += " -D_GNU_SOURCE "
 have_func('mremap', 'sys/mman.h')
 
-$CPPFLAGS += " -D_BSD_SOURCE -D_XOPEN_SOURCE=600 "
+$CPPFLAGS += " -D_BSD_SOURCE "
 have_func("getpagesize", "unistd.h")
 have_func('rb_thread_blocking_region')
 have_func('rb_thread_io_blocking_region')