Ticket #2516: patch-lib_vfs_mc-vfs_vfs.c

File patch-lib_vfs_mc-vfs_vfs.c, 325 bytes (added by cheusov, 14 years ago)
Line 
1$NetBSD$
2
3--- lib/vfs/mc-vfs/vfs.c.orig   2010-11-08 11:46:13 +0000
4+++ lib/vfs/mc-vfs/vfs.c
5@@ -74,6 +74,10 @@
6 #  define NAME_MAX FILENAME_MAX
7 #endif
8 
9+#ifndef MAXNAMLEN
10+#define MAXNAMLEN PATH_MAX
11+#endif
12+
13 /** They keep track of the current directory */
14 static struct vfs_class *current_vfs;
15 static char *current_dir;