samba-bugs@samba.org
2004-Oct-08 21:01 UTC
[Bug 1893] New: Interix fails build due to makedev() as wrong macro name
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@samba.org ReportedBy: tv@duh.org QAContact: rsync-qa@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.
Possibly Parallel Threads
- [PATCH libguestfs] Use AC_HEADER_MAJOR to find definitions of major, minor, makedev.
- [Bug 1893] Interix fails build due to makedev() as wrong macro name
- [PATCH supermin 0/2] Use AC_HEADER_MAJOR to find definitions of major, minor, makedev.
- Re: [PATCH v2 2/2] builder: Choose better weights in the planner.
- DO NOT REPLY [Bug 3806] New: makedev has 3 arguments in qnx