diff options
author | obache <obache@pkgsrc.org> | 2010-01-30 08:46:20 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-01-30 08:46:20 +0000 |
commit | d7f18301adb245047f04a4de610098b0d541988b (patch) | |
tree | 2e4ecb37e6b65832479f7d004678e8513278e02b /archivers/pax/files | |
parent | 01956f40f5063c1929ff4b8bb18986ef76aba951 (diff) | |
download | pkgsrc-d7f18301adb245047f04a4de610098b0d541988b.tar.gz |
Add Haiku support. patch taken from Haiku support for libarchive.
Diffstat (limited to 'archivers/pax/files')
-rw-r--r-- | archivers/pax/files/pax.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/archivers/pax/files/pax.h b/archivers/pax/files/pax.h index 474e828bd5d..24fea69b8bf 100644 --- a/archivers/pax/files/pax.h +++ b/archivers/pax/files/pax.h @@ -1,4 +1,4 @@ -/* $NetBSD: pax.h,v 1.11 2007/09/06 20:10:22 joerg Exp $ */ +/* $NetBSD: pax.h,v 1.12 2010/01/30 08:46:20 obache Exp $ */ /*- * Copyright (c) 1992 Keith Muller. @@ -251,6 +251,11 @@ typedef struct oplist { # define MINOR(x) minor_netbsd(x) # define TODEV(x, y) makedev_netbsd((x), (y)) #else +# ifdef __HAIKU__ +# define major(x) ((int)(0x00ff & ((x) >> 8))) +# define minor(x) ((int)(0xffff00ff & (x))) +# define makedev(maj,min) ((0xff00 & ((maj)<<8))|(0xffff00ff & (min))) +# endif # define MAJOR(x) major(x) # define MINOR(x) minor(x) # ifdef __QNXNTO__ |