summaryrefslogtreecommitdiff
path: root/editors/mule/patches/patch-cc
blob: 8568ab4a8f94ab844a285e23372e656e2c0956ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-cc,v 1.1 2006/01/04 20:35:08 joerg Exp $

--- src/mcpath.h.orig	2006-01-04 18:01:24.000000000 +0000
+++ src/mcpath.h
@@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass A
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <limits.h>
 
 #ifdef VMS
 #include <string.h>
@@ -93,7 +94,11 @@ struct mcpath_direntry
 #ifndef MSDOS
   int d_ino;
 #endif /* not MSDOS */
+#ifdef NAME_MAX
+  unsigned char d_name [MCPATH_BUFSIZ (NAME_MAX) + 1];
+#else
   unsigned char d_name [MCPATH_BUFSIZ (MAXNAMLEN) + 1];
+#endif
 };
 
 extern DIR *mc_opendir ();