* 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:
parent
86298123d7
commit
94acb9c6bc
@ -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>
|
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.
|
* array.c (rb_ary_fill): shouldn't yield unless block given.
|
||||||
|
@ -275,7 +275,8 @@ AC_HEADER_STDC
|
|||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\
|
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\
|
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.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_TYPE_UID_T
|
AC_TYPE_UID_T
|
||||||
|
4
file.c
4
file.c
@ -67,6 +67,10 @@ char *strrchr _((const char*,const char));
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_MKDEV_H
|
||||||
|
#include <sys/mkdev.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_LSTAT
|
#ifndef HAVE_LSTAT
|
||||||
#define lstat(path,st) stat(path,st)
|
#define lstat(path,st) stat(path,st)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user