diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-15 11:09:47 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-15 11:09:47 +0000 |
commit | 3d25acdccc6c6afec0649655859590892b561c9d (patch) | |
tree | 571a87539732e51d4c3f51bc91eeb9c072b29073 /io.c | |
parent | e4081877a8240541fb47ef08095f73db3e156325 (diff) | |
download | ruby-3d25acdccc6c6afec0649655859590892b561c9d.tar.gz |
* io.c, thread.c, ext/pty/pty.c, ext/fiddle/closure.c: use
__linux__ macro for consistency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8289,7 +8289,7 @@ rb_f_syscall(int argc, VALUE *argv) # else # error ---->> it is asserted that __syscall takes the first argument and returns retval in 64bit signed integer. <<---- # endif -#elif defined linux +#elif defined(__linux__) # define SYSCALL syscall # define NUM2SYSCALLID(x) NUM2LONG(x) # define RETVAL2NUM(x) LONG2NUM(x) @@ -9168,7 +9168,7 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp) #if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN case EWOULDBLOCK: #endif -#ifndef linux +#ifndef __linux__ /* * Linux requires stp->src_fd to be a mmap-able (regular) file, * select() reports regular files to always be "ready", so |