pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/vixie-cron Make it compile on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f57f99527de8
branches:  trunk
changeset: 555931:f57f99527de8
user:      hasso <hasso%pkgsrc.org@localhost>
date:      Fri Mar 13 11:24:16 2009 +0000

description:
Make it compile on DragonFly.

diffstat:

 time/vixie-cron/distinfo         |   3 ++-
 time/vixie-cron/patches/patch-ab |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 0ec3f47cb17b -r f57f99527de8 time/vixie-cron/distinfo
--- a/time/vixie-cron/distinfo  Fri Mar 13 11:22:12 2009 +0000
+++ b/time/vixie-cron/distinfo  Fri Mar 13 11:24:16 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2008/06/16 16:12:50 joerg Exp $
+$NetBSD: distinfo,v 1.3 2009/03/13 11:24:16 hasso Exp $
 
 SHA1 (cron_4.1.shar) = 77c52a492b075a77f87eded9dfdbf4bf9ba0ac91
 RMD160 (cron_4.1.shar) = a9a8d3fe6c851d7fcd098676f2edc0bc310f695e
 Size (cron_4.1.shar) = 205506 bytes
 SHA1 (patch-aa) = 98605040a8bd02b85b75baad1dabf53d807c5af8
+SHA1 (patch-ab) = 2d88ecfa9d3db6faf0951ad1a6e127a5e1e05054
diff -r 0ec3f47cb17b -r f57f99527de8 time/vixie-cron/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/vixie-cron/patches/patch-ab  Fri Mar 13 11:24:16 2009 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1 2009/03/13 11:24:16 hasso Exp $
+
+--- database.c.orig    2009-03-12 08:12:10 +0200
++++ database.c 2009-03-12 08:13:24 +0200
+@@ -30,6 +30,10 @@ static char rcsid[] = "$Id: database.c,v
+ 
+ #define TMAX(a,b) ((a)>(b)?(a):(b))
+ 
++#ifndef NAME_MAX
++#define NAME_MAX MAXNAMLEN
++#endif
++
+ static        void            process_crontab(const char *, const char *,
+                                       const char *, struct stat *,
+                                       cron_db *, cron_db *);
+@@ -93,7 +97,7 @@ load_database(cron_db *old_db) {
+       }
+ 
+       while (NULL != (dp = readdir(dir))) {
+-              char fname[MAXNAMLEN+1], tabname[MAXNAMLEN+1];
++              char fname[NAME_MAX+1], tabname[NAME_MAX+1];
+ 
+               /* avoid file names beginning with ".".  this is good
+                * because we would otherwise waste two guaranteed calls



Home | Main Index | Thread Index | Old Index