pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/gchore Fix errno, use getprogname on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b03932cb758
branches:  trunk
changeset: 505338:4b03932cb758
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jan 02 22:18:22 2006 +0000

description:
Fix errno, use getprogname on DragonFly.

diffstat:

 time/gchore/distinfo         |   3 ++-
 time/gchore/patches/patch-aa |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 140820519bf7 -r 4b03932cb758 time/gchore/distinfo
--- a/time/gchore/distinfo      Mon Jan 02 22:13:26 2006 +0000
+++ b/time/gchore/distinfo      Mon Jan 02 22:18:22 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/12/29 21:11:34 garbled Exp $
+$NetBSD: distinfo,v 1.2 2006/01/02 22:18:22 joerg Exp $
 
 SHA1 (gchore-1.0.tar.gz) = 93ad338a7ac4480af435fd5469095a8a5f16c4fb
 RMD160 (gchore-1.0.tar.gz) = 29abc758894b63dfd528f01bdc2bcf1b17925c4b
 Size (gchore-1.0.tar.gz) = 112959 bytes
+SHA1 (patch-aa) = 808412199d8fab55d8a5899ad6de2eccc022169a
diff -r 140820519bf7 -r 4b03932cb758 time/gchore/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/gchore/patches/patch-aa      Mon Jan 02 22:18:22 2006 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1 2006/01/02 22:18:22 joerg Exp $
+
+--- src/utils.c.orig   2006-01-02 22:14:51.000000000 +0000
++++ src/utils.c
+@@ -93,9 +93,8 @@ caltime_t *calc_caltime(int day, int mon
+ void _bailout(char *file, int line)
+ {
+     char *pname;
+-    extern int errno;
+ 
+-#if defined(__NetBSD__)
++#if defined(__NetBSD__) || defined(__DragonFly__)
+     pname = (char *)getprogname();
+ #elif defined(__linux__)
+     pname = program_invocation_name;



Home | Main Index | Thread Index | Old Index