diff options
author | Eric Wong <e@80x24.org> | 2015-07-14 20:08:49 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-07-14 20:09:58 +0000 |
commit | 8177ec7a32ef7f4c12756d8b272d15a9239a154d (patch) | |
tree | 184797ee0af63cedd16e3e1e97ecac3dd76f5a6b /ext/raindrops/extconf.rb | |
parent | 8eb264580731e4304808428db5c7a33fe1926a52 (diff) | |
download | raindrops-8177ec7a32ef7f4c12756d8b272d15a9239a154d.tar.gz |
The linux/tcp.h header may not exist on alternative libc implementations such as musl. Noticed-by: Doug Forster <doug.forster@gmail.com>
Diffstat (limited to 'ext/raindrops/extconf.rb')
-rw-r--r-- | ext/raindrops/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/raindrops/extconf.rb b/ext/raindrops/extconf.rb index f012808..74ed8f9 100644 --- a/ext/raindrops/extconf.rb +++ b/ext/raindrops/extconf.rb @@ -6,6 +6,7 @@ have_func('munmap', 'sys/mman.h') or abort 'munmap() not found' $CPPFLAGS += " -D_GNU_SOURCE " have_func('mremap', 'sys/mman.h') +have_header('linux/tcp.h') $CPPFLAGS += " -D_BSD_SOURCE " have_func("getpagesize", "unistd.h") |