From 94acb9c6bc5927b118510d0d4f0c8700748c0abf Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 29 Jan 2002 09:15:59 +0000 Subject: [PATCH] * file.c: `major' and `minor' macro needs sys/mkdev.h on SunOS 5.x. * configure.in: add check for `sys/mkdev.h'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ configure.in | 3 ++- file.c | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 33a3e0e177..82dcfc5819 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 29 17:59:20 2002 Tanaka Akira + + * file.c: `major' and `minor' macro needs sys/mkdev.h on SunOS 5.x. + + * configure.in: add check for `sys/mkdev.h'. + Mon Jan 28 19:16:58 2002 Nobuyoshi Nakada * array.c (rb_ary_fill): shouldn't yield unless block given. diff --git a/configure.in b/configure.in index f7cc86dfca..28e91b8af7 100644 --- a/configure.in +++ b/configure.in @@ -275,7 +275,8 @@ AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\ fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\ - syscall.h pwd.h a.out.h utime.h memory.h direct.h sys/resource.h) + syscall.h pwd.h a.out.h utime.h memory.h direct.h sys/resource.h \ + sys/mkdev.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_TYPE_UID_T diff --git a/file.c b/file.c index 8d6d5e0ca0..13cca0fa47 100644 --- a/file.c +++ b/file.c @@ -67,6 +67,10 @@ char *strrchr _((const char*,const char)); #include #include +#ifdef HAVE_SYS_MKDEV_H +#include +#endif + #ifndef HAVE_LSTAT #define lstat(path,st) stat(path,st) #endif