[Top][All Lists]

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

[Bug-tar] Patch for lib/system.h for Interix

From: Todd Vierling
Subject: [Bug-tar] Patch for lib/system.h for Interix
Date: Fri, 21 Jan 2005 10:57:42 -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.  (Counterpart change to one submitted to
bug-cpio as well.)

--- lib/system.h.orig   Mon Sep  6 15:49:42 2004
+++ lib/system.h        Sun Jan  9 18:25:02 2005
@@ -282,6 +282,9 @@

 # include <sys/mkdev.h>
+# if !defined(makedev) && defined(mkdev)
+#  define makedev(a,b) mkdev((a),(b))
+# endif
 # define GOT_MAJOR

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

reply via email to

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