summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-04-03 22:22:55 +0000
committertnn <tnn@pkgsrc.org>2022-04-03 22:22:55 +0000
commita23d68f4d8143df5211cbc8c994c94c5a16786b2 (patch)
tree1a8b429083d2a82427028657048fdfaac1cc76df /security
parent4382bdef6f17196c2f65fd1f9e1c9247e879ada2 (diff)
downloadpkgsrc-a23d68f4d8143df5211cbc8c994c94c5a16786b2.tar.gz
netpgpverify: add configure quirks to get strtoull on legacy platforms
Diffstat (limited to 'security')
-rwxr-xr-xsecurity/netpgpverify/files/configure9
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