diff options
author | tnn <tnn@pkgsrc.org> | 2022-04-03 22:22:55 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-04-03 22:22:55 +0000 |
commit | a23d68f4d8143df5211cbc8c994c94c5a16786b2 (patch) | |
tree | 1a8b429083d2a82427028657048fdfaac1cc76df /security | |
parent | 4382bdef6f17196c2f65fd1f9e1c9247e879ada2 (diff) | |
download | pkgsrc-a23d68f4d8143df5211cbc8c994c94c5a16786b2.tar.gz |
netpgpverify: add configure quirks to get strtoull on legacy platforms
Diffstat (limited to 'security')
-rwxr-xr-x | security/netpgpverify/files/configure | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/security/netpgpverify/files/configure b/security/netpgpverify/files/configure index ab00ba8230f..3c9606bf03d 100755 --- a/security/netpgpverify/files/configure +++ b/security/netpgpverify/files/configure @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: configure,v 1.1 2013/03/16 07:32:34 agc Exp $ +# $NetBSD: configure,v 1.2 2022/04/03 22:22:55 tnn Exp $ # Copyright (c) 2013 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -54,6 +54,13 @@ echo "#define USE_ARG(x) /*LINTED*/(void)&(x)" >> config.h echo "#endif /* USE_ARG */" >> config.h echo "" >> config.h + +if [ "`uname -s`" = "OSF1" ]; then + echo "#define strtoull(nptr, endptr, base) strtoul(nptr, endptr, base)" >> config.h +elif [ "`uname -s`" = "HP-UX" ]; then + echo "#define strtoull(nptr, endptr, base) __strtoull(nptr, endptr, base)" >> config.h +fi + echo "#endif /* CONFIG_H_ */" >> config.h for f in Makefile.in; do |