about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-09-26 03:48:50 +0000
committerEric Wong <normalperson@yhbt.net>2010-09-26 03:48:50 +0000
commit96dad9948d3a7b181d50a9fcb35320677edc352b (patch)
tree984f4e96fcc8fe4a349039fdebab9ea449f69e86
parenta226d237666728ea9242f6079b2c76528d53cdb2 (diff)
downloadsleepy_penguin-96dad9948d3a7b181d50a9fcb35320677edc352b.tar.gz
It was just st.h in the old days.
-rw-r--r--ext/sleepy_penguin/epoll.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/sleepy_penguin/epoll.c b/ext/sleepy_penguin/epoll.c
index 3540c51..d955e47 100644
--- a/ext/sleepy_penguin/epoll.c
+++ b/ext/sleepy_penguin/epoll.c
@@ -1,6 +1,11 @@
 #include "sleepy_penguin.h"
 #include <sys/epoll.h>
 #include <pthread.h>
+#ifdef HAVE_RUBY_ST_H
+#  include <ruby/st.h>
+#else
+#  include <st.h>
+#endif
 
 #ifndef EPOLL_CLOEXEC
 #  define EPOLL_CLOEXEC (int)(02000000)