summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch')
-rw-r--r--meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch b/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch
new file mode 100644
index 000000000..130267931
--- /dev/null
+++ b/meta-oe/recipes-support/mg/mg/0001-Undefine-REGEX-for-musl-based-systems.patch
@@ -0,0 +1,39 @@
1From a370ccd9447752c555aeca04f64021efedde4db3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Apr 2017 17:16:19 -0700
4Subject: [PATCH] Undefine REGEX for musl based systems
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 GNUmakefile | 1 -
9 Makefile | 2 +-
10 2 files changed, 1 insertion(+), 2 deletions(-)
11
12diff --git a/GNUmakefile b/GNUmakefile
13index 7bf7dca..0e10030 100644
14--- a/GNUmakefile
15+++ b/GNUmakefile
16@@ -41,7 +41,6 @@ endif
17 CC?= gcc
18 CFLAGS?= -O2 -pipe
19 CFLAGS+= -g -Wall
20-CPPFLAGS= -DREGEX
21 CPPFLAGS+= -D_GNU_SOURCE
22 CPPFLAGS+= $(BSD_CPPFLAGS) -D__dead=__dead2
23 LIBS= $(CURSES_LIBS) $(BSD_LIBS)
24diff --git a/Makefile b/Makefile
25index 94ce340..d516bbc 100644
26--- a/Makefile
27+++ b/Makefile
28@@ -10,7 +10,7 @@ DPADD+= ${LIBCURSES} ${LIBUTIL}
29 # REGEX -- create regular expression functions.
30 # STARTUPFILE -- look for and handle initialization file.
31 #
32-CFLAGS+=-Wall -DREGEX
33+CFLAGS+=-Wall
34
35 SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \
36 echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
37--
382.12.2
39