1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2002-01-29 09:15:59 +00:00
parent 86298123d7
commit 94acb9c6bc
3 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Tue Jan 29 17:59:20 2002 Tanaka Akira <akr@m17n.org>
* 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 <nobu.nakada@nifty.ne.jp>
* array.c (rb_ary_fill): shouldn't yield unless block given.

View file

@ -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

4
file.c
View file

@ -67,6 +67,10 @@ char *strrchr _((const char*,const char));
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_MKDEV_H
#include <sys/mkdev.h>
#endif
#ifndef HAVE_LSTAT
#define lstat(path,st) stat(path,st)
#endif