From 29bcae9a72373da1f13f7cb478599f36db56ff0a Mon Sep 17 00:00:00 2001 From: triaxx Date: Mon, 29 Oct 2018 20:18:02 +0000 Subject: pax: add for Linux * On Arch Linux, the build failed, makedev(3) indicates #include * On Debian Buster, the build succeed but a big warning is displayed: warning: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . --- archivers/pax/Makefile | 4 ++-- archivers/pax/files/pax.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/archivers/pax/Makefile b/archivers/pax/Makefile index 0aaf914bfeb..396519ca092 100644 --- a/archivers/pax/Makefile +++ b/archivers/pax/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.52 2018/04/07 08:57:01 jperkin Exp $ +# $NetBSD: Makefile,v 1.53 2018/10/29 20:18:02 triaxx Exp $ DISTNAME= pax-20080110 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= archivers MASTER_SITES= # empty DISTFILES= # empty diff --git a/archivers/pax/files/pax.h b/archivers/pax/files/pax.h index 26d5319a9dc..e4fb6f7ae38 100644 --- a/archivers/pax/files/pax.h +++ b/archivers/pax/files/pax.h @@ -1,4 +1,4 @@ -/* $NetBSD: pax.h,v 1.13 2014/03/14 22:16:50 ryoon Exp $ */ +/* $NetBSD: pax.h,v 1.14 2018/10/29 20:18:02 triaxx Exp $ */ /*- * Copyright (c) 1992 Keith Muller. @@ -265,7 +265,7 @@ typedef struct oplist { # define major(x) ((int)(0x00ff & ((x) >> 8))) # define minor(x) ((int)(0xffff00ff & (x))) # define makedev(maj,min) ((0xff00 & ((maj)<<8))|(0xffff00ff & (min))) -# elif defined(_SCO_DS) +# elif defined(_SCO_DS) || defined(__linux__) # include # endif # define MAJOR(x) major(x) -- cgit v1.2.3