app-text/sile: restrict to lua 5.3+
[sgilles-overlay.git] / app-editors / mg / files / mg-20161116-missing-defines.patch
blob58f5e109fa34a106046bfab7c0c6d5cdb7a2d997
1 diff --git a/fileio.c b/fileio.c
2 index 4bb1f46..c937eb0 100644
3 --- a/fileio.c
4 +++ b/fileio.c
5 @@ -27,6 +27,14 @@
6 #include "kbd.h"
7 #include "pathnames.h"
9 +#ifndef MAXNAMLEN
10 +#define MAXNAMLEN 255
11 +#endif
13 +#ifndef DEFFILEMODE
14 +#define DEFFILEMODE 0666
15 +#endif
17 static char *bkuplocation(const char *);
18 static int bkupleavetmp(const char *);
20 diff --git a/re_search.c b/re_search.c
21 index 287030a..da44f00 100644
22 --- a/re_search.c
23 +++ b/re_search.c
24 @@ -34,6 +34,10 @@
25 #define RE_NMATCH 10 /* max number of matches */
26 #define REPLEN 256 /* max length of replacement string */
28 +#ifndef REG_STARTEND
29 +#define REG_STARTEND 4
30 +#endif
32 char re_pat[NPAT]; /* regex pattern */
33 int re_srch_lastdir = SRCH_NOPR; /* last search flags */
34 int casefoldsearch = TRUE; /* does search ignore case? */