Use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
[rsync/rsync.git] / rsync.h
diff --git a/rsync.h b/rsync.h
index 9791094..3824773 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -246,8 +246,10 @@ enum msgcode {
 # endif
 #endif
 
-#ifdef HAVE_SYS_MKDEV_H
+#if MAJOR_IN_MKDEV
 #include <sys/mkdev.h>
+#elif MAJOR_IN_SYSMACROS
+#include <sysmacros.h>
 #endif
 
 #ifdef HAVE_COMPAT_H