diff options
author | dholland <dholland> | 2012-04-16 03:50:38 +0000 |
---|---|---|
committer | dholland <dholland> | 2012-04-16 03:50:38 +0000 |
commit | 4bd3f469ea6792a0f942a88bddc948781486f1af (patch) | |
tree | ce68aea4fea7916e3d0110a53c12f3db23aa969f /databases/sdbm | |
parent | 360575ab3cd339392f2ec37e0a0e7c24da6033bb (diff) | |
download | pkgsrc-4bd3f469ea6792a0f942a88bddc948781486f1af.tar.gz |
When using strerror instead of sys_errlist, skip sys_nerr too. Should
fix the Solaris build.
Diffstat (limited to 'databases/sdbm')
-rw-r--r-- | databases/sdbm/distinfo | 4 | ||||
-rw-r--r-- | databases/sdbm/patches/patch-ad | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/databases/sdbm/distinfo b/databases/sdbm/distinfo index 5af5bc9c07d..7c058bfaa3b 100644 --- a/databases/sdbm/distinfo +++ b/databases/sdbm/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.10 2012/03/05 03:38:12 dholland Exp $ +$NetBSD: distinfo,v 1.11 2012/04/16 03:50:38 dholland Exp $ SHA1 (sdbm.tar.Z) = ebeb769b308a00853b0119f32dda781829e1d712 RMD160 (sdbm.tar.Z) = 33a48f642ad81bb15a7ce4440dca605e97774afa @@ -6,7 +6,7 @@ Size (sdbm.tar.Z) = 63557 bytes SHA1 (patch-aa) = cbac91086cf9b149b62d63f7f3b3435786ac6090 SHA1 (patch-ab) = 9dd9ce20db82283c8692f91d337348e1e952403a SHA1 (patch-ac) = 6455fcb75d5d11173dd5063919e3336989e1e821 -SHA1 (patch-ad) = 7ad5a481f9746ee70bbc94dd509c15969446c8d5 +SHA1 (patch-ad) = 7857dbfc168d12985a9fa0b5cefc39ac90bc4fba SHA1 (patch-ae) = 69e4e40277ecae8e6023d72dbbd4a738583f46dd SHA1 (patch-af) = d990ecba1b79c04130c4d24666ea2b3da4b1d91c SHA1 (patch-ah) = 63019f2175766d73ef213297e54597e6fd5fba13 diff --git a/databases/sdbm/patches/patch-ad b/databases/sdbm/patches/patch-ad index 7ce6be6104c..781ec192c82 100644 --- a/databases/sdbm/patches/patch-ad +++ b/databases/sdbm/patches/patch-ad @@ -1,9 +1,9 @@ -$NetBSD: patch-ad,v 1.3 2012/01/04 15:09:38 dholland Exp $ +$NetBSD: patch-ad,v 1.4 2012/04/16 03:50:38 dholland Exp $ - use standard headers - don't declare own errno ---- util.c.orig 2012-01-04 15:05:00.000000000 +0000 +--- util.c.orig 2012-04-16 03:53:49.000000000 +0000 +++ util.c @@ -1,4 +1,7 @@ #include <stdio.h> @@ -24,8 +24,9 @@ $NetBSD: patch-ad,v 1.3 2012/01/04 15:09:38 dholland Exp $ if (progname) fprintf(stderr, "%s: ", progname); fprintf(stderr, s1, s2); - if (errno > 0 && errno < sys_nerr) +- if (errno > 0 && errno < sys_nerr) - fprintf(stderr, " (%s)", sys_errlist[errno]); ++ if (errno > 0) + fprintf(stderr, " (%s)", strerror(errno)); fprintf(stderr, "\n"); exit(1); |