summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--configure.in3
-rw-r--r--file.c4
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 33a3e0e1778..82dcfc5819c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 f7cc86dfcae..28e91b8af7b 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 8d6d5e0ca0f..13cca0fa475 100644
--- a/file.c
+++ b/file.c
@@ -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