diff --git a/rsync.h b/rsync.h index 9791094a..38247732 100644 --- a/rsync.h +++ b/rsync.h @@ -246,8 +246,10 @@ enum msgcode { # endif #endif -#ifdef HAVE_SYS_MKDEV_H +#if MAJOR_IN_MKDEV #include +#elif MAJOR_IN_SYSMACROS +#include #endif #ifdef HAVE_COMPAT_H