diff options
author | hasso <hasso@pkgsrc.org> | 2009-03-13 11:24:16 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-03-13 11:24:16 +0000 |
commit | 9a4dc5f8c14e126f370a7828f801e0f55503f5da (patch) | |
tree | 9447ce0582198b451461e8b8d975c9afa94c2d5f /time/vixie-cron/patches | |
parent | 36afa595ce60dfddcf984801e9f92a97abfece80 (diff) | |
download | pkgsrc-9a4dc5f8c14e126f370a7828f801e0f55503f5da.tar.gz |
Make it compile on DragonFly.
Diffstat (limited to 'time/vixie-cron/patches')
-rw-r--r-- | time/vixie-cron/patches/patch-ab | 24 |
1 files changed, 24 insertions, 0 deletions
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 |