--- ../minicom-2.7/src/getsdir.h 2009-12-13 02:47:47.000000000 +1100
+++ ./src/getsdir.h 2016-04-19 15:59:00.459999674 +1000
-@@ -23,12 +23,12 @@
+@@ -23,12 +23,13 @@
*/
#include <dirent.h>
-
+#include <sys/types.h>
++#include <limits.h>
typedef struct dirEntry { /* structure of data item */
- char fname[MAXNAMLEN + 1]; /* filename + terminating null */
+ char fname[NAME_MAX + 1]; /* filename + terminating null */