diff src/lib/compat.h @ 3932:b079a386a2f7 HEAD

Include sys/mkdev.h with UnixWare for major() and minor()
author Timo Sirainen <tss@iki.fi>
date Sun, 22 Jan 2006 18:10:52 +0200
parents 49a1a979959e
children 76e2177be0bf
line wrap: on
line diff
--- a/src/lib/compat.h	Sun Jan 22 18:09:49 2006 +0200
+++ b/src/lib/compat.h	Sun Jan 22 18:10:52 2006 +0200
@@ -53,6 +53,9 @@
 
 #ifdef HAVE_SYS_SYSMACROS_H
 #  include <sys/sysmacros.h>
+#  ifdef HAVE_SYS_MKDEV_H
+#    include <sys/mkdev.h> /* UnixWare */
+#  endif
 #  define CMP_DEV_T(a, b) (major(a) == major(b) && minor(a) == minor(b))
 #elif !defined (DEV_T_STRUCT)
 #  define CMP_DEV_T(a, b) ((a) == (b))