[ruby-core:79061] Re: [Ruby trunk Feature#13103] [PATCH] random.c: use "__NR_" syscall prefix on Linux (instead of "SYS_")

From: Eric Wong <normalperson@...>
Date: 2017-01-11 22:46:26 UTC
List: ruby-core #79061
kosaki.motohiro@gmail.com wrote:
> SYS_getrandom and __NR_getrandom are defined in different headers. but
> your patch doesn't change any #include directive. It seems odd.

Yes.  sys/syscall.h (glibc, libc6-dev on Debian) pulls in
asm/unistd_#{ARCH}.h (provided by Linux kernel headers,
linux-libc-dev on Debian) where NR_* is defined.

> Anyway I have no objection. 

Thanks, r57307

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next