From bfb334eefa6fdebcf95af0b44f27117b754d93c7 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 9 May 2013 12:12:17 +0000 Subject: * file.c, ext/etc/etc.c, ext/socket/unixsocket.c, ext/openssl/ossl.h, ext/openssl/openssl_missing.c: Use HAVE_AGGREGATE_MEMBER instead of HAVE_ST_MEMBER. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index d14c22ee36..e6fe603a1d 100644 --- a/file.c +++ b/file.c @@ -531,7 +531,7 @@ rb_stat_gid(VALUE self) static VALUE rb_stat_rdev(VALUE self) { -#ifdef HAVE_ST_RDEV +#ifdef HAVE_STRUCT_STAT_ST_RDEV return DEVT2NUM(get_stat(self)->st_rdev); #else return Qnil; @@ -552,7 +552,7 @@ rb_stat_rdev(VALUE self) static VALUE rb_stat_rdev_major(VALUE self) { -#if defined(HAVE_ST_RDEV) && defined(major) +#if defined(HAVE_STRUCT_STAT_ST_RDEV) && defined(major) return DEVT2NUM(major(get_stat(self)->st_rdev)); #else return Qnil; @@ -573,7 +573,7 @@ rb_stat_rdev_major(VALUE self) static VALUE rb_stat_rdev_minor(VALUE self) { -#if defined(HAVE_ST_RDEV) && defined(minor) +#if defined(HAVE_STRUCT_STAT_ST_RDEV) && defined(minor) return DEVT2NUM(minor(get_stat(self)->st_rdev)); #else return Qnil; @@ -609,7 +609,7 @@ rb_stat_size(VALUE self) static VALUE rb_stat_blksize(VALUE self) { -#ifdef HAVE_ST_BLKSIZE +#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE return ULONG2NUM(get_stat(self)->st_blksize); #else return Qnil; -- cgit v1.2.3