Define MAKEDEV() based on the MAKEDEV_TAKES_3_ARGS define.
authorWayne Davison <wayned@samba.org>
Mon, 10 Jul 2006 04:25:10 +0000 (04:25 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 10 Jul 2006 04:25:10 +0000 (04:25 +0000)
rsync.h

diff --git a/rsync.h b/rsync.h
index bc7a46a..99f62e3 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -314,6 +314,12 @@ enum msgcode {
 #include <sys/sysmacros.h>
 #endif
 
+#ifdef MAKEDEV_TAKES_3_ARGS
+#define MAKEDEV(devmajor,devminor) makedev(0,devmajor,devminor)
+#else
+#define MAKEDEV(devmajor,devminor) makedev(devmajor,devminor)
+#endif
+
 #ifdef HAVE_COMPAT_H
 #include <compat.h>
 #endif