bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] Patch for system.h for Interix


From: Todd Vierling
Subject: [Bug-cpio] Patch for system.h for Interix
Date: Fri, 21 Jan 2005 10:56:54 -0500 (EST)

Interix doesn't use makedev(); it uses mkdev(), but is otherwise much like
Sun in the use of <sys/mkdev.h>.  The following is a cross-compatible fix to
make "makedev" work on both.

--- system.h.orig       2005-01-18 11:03:19.000000000 -0500
+++ system.h
@@ -59,6 +59,9 @@ off_t lseek ();
 /* Since major is a function on SVR4, we can't use `ifndef major'.  */
 #ifdef MAJOR_IN_MKDEV
 #include <sys/mkdev.h>
+# if !defined(makedev) && defined(mkdev)
+#  define makedev(a,b) mkdev((a),(b))
+# endif
 #define HAVE_MAJOR
 #endif

-- 
-- Todd Vierling <address@hidden> <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]