https://bugzilla.samba.org/show_bug.cgi?id=1893

           Summary: Interix fails build due to makedev() as wrong macro name
           Product: rsync
           Version: 2.6.3
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: trivial
          Priority: P3
         Component: core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]


Under Interix (Windows Services for Unix), the build of rsync fails at link
because flist.c is calling makedev(), which is actually named mkdev() on Interix.

To make rsync compatible with this, I suggest the following change (similar to
what pkgsrc.org uses at the moment to make rsync work on Interix).

--- rsync.h.orig
+++ rsync.h
@@ -255,6 +255,9 @@ enum msgcode {
 
 #if MAJOR_IN_MKDEV
 #include <sys/mkdev.h>
+# if !defined(makedev) && defined(mkdev)
+#  define makedev mkdev
+# endif
 #elif MAJOR_IN_SYSMACROS
 #include <sys/sysmacros.h>
 #endif

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to