diff options
author | hasso <hasso@pkgsrc.org> | 2009-03-11 19:24:41 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-03-11 19:24:41 +0000 |
commit | 8f30d9b46ac640f93586af55f8f9d3d39b3e0b8e (patch) | |
tree | 2fba01da310771eb67c318f6d3fbcdee0a482cc5 /editors | |
parent | 505070bdf363fb2dea1f071d44a854134cc503b8 (diff) | |
download | pkgsrc-8f30d9b46ac640f93586af55f8f9d3d39b3e0b8e.tar.gz |
Make it build on DragonFly.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/mg/distinfo | 3 | ||||
-rw-r--r-- | editors/mg/patches/patch-ah | 27 |
2 files changed, 29 insertions, 1 deletions
diff --git a/editors/mg/distinfo b/editors/mg/distinfo index 64c617ca254..6e9ec838c22 100644 --- a/editors/mg/distinfo +++ b/editors/mg/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2009/02/13 11:42:01 abs Exp $ +$NetBSD: distinfo,v 1.3 2009/03/11 19:24:41 hasso Exp $ SHA1 (mg-20090107.tar.gz) = 3191c6dea4996347b6d40b34fa4c88a57e5ef42e RMD160 (mg-20090107.tar.gz) = d35cc894d2be7bfafb1943fefb5529c2dcbc2002 @@ -8,3 +8,4 @@ SHA1 (patch-ab) = a5d9864a49c83c4851266b24bea62534859acccc SHA1 (patch-ad) = f71bed38dc38ca107dd8aade779a75b5597aab0d SHA1 (patch-af) = e305ea6c7189b51467c5f46fec42d88c0f54c107 SHA1 (patch-ag) = 5d973ea998cca712e39a8b207820aea7e2739316 +SHA1 (patch-ah) = 579d1438d959597899ef82ab4bfed662792fa64d diff --git a/editors/mg/patches/patch-ah b/editors/mg/patches/patch-ah new file mode 100644 index 00000000000..5291a646769 --- /dev/null +++ b/editors/mg/patches/patch-ah @@ -0,0 +1,27 @@ +$NetBSD: patch-ah,v 1.1 2009/03/11 19:24:41 hasso Exp $ + +--- fileio.c.orig 2009-03-11 19:57:37 +0200 ++++ fileio.c 2009-03-11 19:58:36 +0200 +@@ -15,6 +15,10 @@ + #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) + #endif + ++#ifndef NAME_MAX ++#define NAME_MAX MAXNAMLEN ++#endif ++ + #include <sys/time.h> + #include <sys/resource.h> + #include <sys/wait.h> +@@ -545,11 +549,7 @@ make_file_list(char *buf) + * SV files are fairly short. For BSD, something more general would + * be required. + */ +-#ifdef __CYGWIN__ /* Cygwin uses NAME_MAX for dirents */ + if (preflen > NFILEN - NAME_MAX) +-#else +- if (preflen > NFILEN - MAXNAMLEN) +-#endif + return (NULL); + + /* loop over the specified directory, making up the list of files */ |