Skip to content

Commit

Permalink
Make work on Interix. It has a mkdev() but not a makedev(), so define
Browse files Browse the repository at this point in the history
makedev() in terms of mkdev() in that case.
  • Loading branch information
tv committed Apr 24, 2004
1 parent caef87b commit 1ef90e5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions archivers/gtar-base/patches/patch-ac
@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.4 2004/04/24 23:07:53 tv Exp $

--- src/system.h.orig Sat Apr 24 19:05:49 2004
+++ src/system.h
@@ -309,6 +309,9 @@ extern int errno;

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

0 comments on commit 1ef90e5

Please sign in to comment.