summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-24 12:15:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-24 12:15:26 +0000
commit972e93de97c5992f7697668951cda902c9426fbb (patch)
tree16a1ee3b35c2ab748d20061f7ccbe281c161b322 /io.c
parenta6872b50a52da2a5bfbd42e14436becf1a300ae1 (diff)
* configure.in, io.c: use sys/syscall.h if syscall.h is not available.
[ruby-core:06247] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 58634bbc58..8bd760336e 100644
--- a/io.c
+++ b/io.c
@@ -74,6 +74,8 @@
#ifdef HAVE_UNISTD_H
#ifdef HAVE_SYSCALL_H
#include <syscall.h>
+#elif defined HAVE_SYS_SYSCALL_H
+#include <sys/syscall.h>
#endif
#include <unistd.h>