diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-30 20:16:15 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-30 20:16:15 +0000 |
commit | 32ae96098390d49630b156dae80dd39dc62e1285 (patch) | |
tree | a85a6660812553c389fef813b7fe4a391191da35 /pkgtools | |
parent | 82dd9ec1db3d01a93cc9b322b7d93e14928107c7 (diff) | |
download | pkgsrc-32ae96098390d49630b156dae80dd39dc62e1285.tar.gz |
- Added __STDC__, __GLIBC__ and __INTERIX to the list of known macros.
- The macro __sparc__ should be replaced with __sparc, so that the code
works with SunPro, too.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index d255f3ebc66..8a039697f76 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.394 2005/11/30 19:53:37 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.395 2005/11/30 20:16:15 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -1514,6 +1514,8 @@ sub checkfile_patches_patch($) { if ($line->text =~ qr"^\+") { use constant good_macros => PkgLint::Util::array_to_hash(qw( + __STDC__ + __GNUC__ __GNUC_MINOR__ __SUNPRO_C @@ -1523,13 +1525,17 @@ sub checkfile_patches_patch($) { __DragonFly__ __FreeBSD__ + __INTERIX __linux__ __NetBSD__ __OpenBSD__ __SVR4 __sun + + __GLIBC__ )); use constant bad_macros => { + "__sparc__" => "__sparc", "__sun__" => "__sun", "__svr4__" => "__SVR4", }; |