pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/netpgpverify/files netpgpverify: add configur...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0915f852ec8
branches:  trunk
changeset: 376252:a0915f852ec8
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Apr 03 22:22:55 2022 +0000

description:
netpgpverify: add configure quirks to get strtoull on legacy platforms

diffstat:

 security/netpgpverify/files/configure |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 7df87714600d -r a0915f852ec8 security/netpgpverify/files/configure
--- a/security/netpgpverify/files/configure     Sun Apr 03 22:16:09 2022 +0000
+++ b/security/netpgpverify/files/configure     Sun Apr 03 22:22:55 2022 +0000
@@ -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@localhost>
 # All rights reserved.
@@ -54,6 +54,13 @@
 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



Home | Main Index | Thread Index | Old Index