aboutsummaryrefslogtreecommitdiffstats
path: root/main/mg/missing-defines.patch
blob: 58f5e109fa34a106046bfab7c0c6d5cdb7a2d997 (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
25
26
27
28
29
30
31
32
33
34
diff --git a/fileio.c b/fileio.c
index 4bb1f46..c937eb0 100644
--- a/fileio.c
+++ b/fileio.c
@@ -27,6 +27,14 @@
 #include "kbd.h"
 #include "pathnames.h"
 
+#ifndef MAXNAMLEN
+#define MAXNAMLEN 255
+#endif
+
+#ifndef DEFFILEMODE
+#define DEFFILEMODE 0666
+#endif
+
 static char *bkuplocation(const char *);
 static int   bkupleavetmp(const char *);
 
diff --git a/re_search.c b/re_search.c
index 287030a..da44f00 100644
--- a/re_search.c
+++ b/re_search.c
@@ -34,6 +34,10 @@
 #define RE_NMATCH	10		/* max number of matches	    */
 #define REPLEN		256		/* max length of replacement string */
 
+#ifndef REG_STARTEND
+#define REG_STARTEND 4
+#endif
+
 char	re_pat[NPAT];			/* regex pattern		    */
 int	re_srch_lastdir = SRCH_NOPR;	/* last search flags		    */
 int	casefoldsearch = TRUE;		/* does search ignore case?	    */