From 529f149bfeb4ded03d64240becad21e8c8f0b8b2 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 19 Aug 2009 16:10:06 +0000 Subject: * dir.c (DEFINE_STRUCT_DIRENT): use union to allocate sufficient memory space for Solaris. a patch from Naohisa GOTO in [ruby-dev:39132]. [ruby-dev:39062] * configure.in (SIZEOF_STRUCT_DIRENT_TOO_SMALL): Solaris dirent check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index f881cd82f1..1e32b7db9c 100644 --- a/configure.in +++ b/configure.in @@ -750,6 +750,10 @@ when(*) esac case "$target_os" in +when(solaris*) + AC_DEFINE(SIZEOF_STRUCT_DIRENT_TOO_SMALL, 1) + LIBS="-lm $LIBS" + ;; when(nextstep*) ;; when(openstep*) ;; when(rhapsody*) ;; -- cgit v1.2.3