summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorhasso <hasso>2009-03-13 11:24:16 +0000
committerhasso <hasso>2009-03-13 11:24:16 +0000
commitb01b982cf1d3ca7ddac3345ea926e5539304cb08 (patch)
tree9447ce0582198b451461e8b8d975c9afa94c2d5f /time
parent80b7a6575904c892469dcb4a26017c8780ee51e4 (diff)
downloadpkgsrc-b01b982cf1d3ca7ddac3345ea926e5539304cb08.tar.gz
Make it compile on DragonFly.
Diffstat (limited to 'time')
-rw-r--r--time/vixie-cron/distinfo3
-rw-r--r--time/vixie-cron/patches/patch-ab24
2 files changed, 26 insertions, 1 deletions
diff --git a/time/vixie-cron/distinfo b/time/vixie-cron/distinfo
index ca62cd44c7b..d28a0e8ad13 100644
--- a/time/vixie-cron/distinfo
+++ b/time/vixie-cron/distinfo
@@ -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 --git a/time/vixie-cron/patches/patch-ab b/time/vixie-cron/patches/patch-ab
new file mode 100644
index 00000000000..0211ce047ff
--- /dev/null
+++ b/time/vixie-cron/patches/patch-ab
@@ -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