# \[PATCH\] Compiling libev on Ubuntu Edgy Eft

**URL:** <https://www.ruby-forum.com/t/patch-compiling-libev-on-ubuntu-edgy-eft/130988>\
**Category:** Rails\
**Created:** [March 5, 2008, 12:20am UTC](https://www.ruby-forum.com/t/patch-compiling-libev-on-ubuntu-edgy-eft/130988 "2008-03-05T00:20:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.dauria](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@michael.dauria](https://www.ruby-forum.com/u/michael.dauria)\
**Post date:** [March 5, 2008, 12:20am UTC](https://www.ruby-forum.com/t/patch-compiling-libev-on-ubuntu-edgy-eft/130988/1 "2008-03-05T00:20:02Z")

</div>

On Ubuntu Edy Eft sys/inotify.h does not define IN\_DONT\_FOLLOW  
(however linux/inotify.h does), so adding the check below will  
circumvent compilation errors.

diff --git a/src/extconf.rb b/src/extconf.rb  
index 2175fab…91bd44a 100644  
— a/src/extconf.rb  
+++ b/src/extconf.rb  
@@ -27,7 +27,7 @@ if have\_header(‘port.h’)  
flags \<\< ‘-DEV\_USE\_PORT’  
end

-if have\_header(‘sys/inotify.h’)  
+if have\_header(‘sys/inotify.h’) and have\_var(‘IN\_DONT\_FOLLOW’, ‘sys/  
inotify.h’)  
flags \<\< ‘-DEV\_USE\_INOTIFY’  
end

Michael
