[Bug 1893] New: Interix fails build due to makedev() as wrong macro
name
samba-bugs at samba.org
samba-bugs at samba.org
Fri Oct 8 20:51:46 GMT 2004
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: wayned at samba.org
ReportedBy: tv at duh.org
QAContact: rsync-qa at samba.org
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.
More information about the rsync
mailing list