diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | file.c | 4 |
3 files changed, 12 insertions, 1 deletions
@@ -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. 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 @@ -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 |