summaryrefslogtreecommitdiff
path: root/comms/minicom/patches/patch-ah
blob: a9aa55a4d127b0dcfedb5754f73f2d5a44328887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ah,v 1.2 2011/08/01 09:30:33 adam Exp $

--- src/getsdir.h.orig	2009-12-12 15:47:47.000000000 +0000
+++ src/getsdir.h
@@ -25,7 +25,11 @@
 #include <dirent.h>
 
 typedef struct dirEntry {		/* structure of data item */
+#ifdef NAME_MAX
+  char fname[NAME_MAX + 1];
+#else
   char fname[MAXNAMLEN + 1];		/* filename + terminating null */
+#endif
   time_t time;				/* last modification date */
   mode_t mode;				/* file mode (dir? etc.) */
   ushort cflags;			/* caller field for convenience */