diff options
Diffstat (limited to 'main/mg/musl-fixes.patch')
-rw-r--r-- | main/mg/musl-fixes.patch | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/main/mg/musl-fixes.patch b/main/mg/musl-fixes.patch deleted file mode 100644 index 31f3fbcc6b..0000000000 --- a/main/mg/musl-fixes.patch +++ /dev/null @@ -1,75 +0,0 @@ -diff --git a/GNUmakefile b/GNUmakefile -index a89c697..ece5944 100644 ---- a/GNUmakefile -+++ b/GNUmakefile -@@ -31,7 +31,7 @@ CURSES_LIBS= -lcurses - CC= gcc - CFLAGS?= -O2 -pipe - CFLAGS+= -g -Wall --CPPFLAGS= -DFKEYS -DREGEX -DXKEYS -+CPPFLAGS= -DFKEYS -DXKEYS - CPPFLAGS+= $(BSD_CPPFLAGS) -D__dead=__dead2 - LIBS= $(CURSES_LIBS) $(BSD_LIBS) - -diff --git a/Makefile b/Makefile -index 023ed17..0c92790 100644 ---- a/Makefile -+++ b/Makefile -@@ -13,7 +13,7 @@ DPADD+= ${LIBCURSES} ${LIBUTIL} - # XKEYS -- use termcap function key definitions. - # note: XKEYS and bsmap mode do _not_ get along. - # --CFLAGS+=-Wall -DFKEYS -DREGEX -DXKEYS -+CFLAGS+=-Wall -DFKEYS -DXKEYS - - SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \ - echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \ -diff --git a/main.c b/main.c -index 9204d63..dfd4a6a 100644 ---- a/main.c -+++ b/main.c -@@ -14,6 +14,10 @@ - #include <err.h> - #include <locale.h> - -+#ifndef __dead2 -+#define __dead2 -+#endif -+ - int thisflag; /* flags, this command */ - int lastflag; /* flags, last command */ - int curgoal; /* goal column */ -diff --git a/sysdef.h b/sysdef.h -index 8d3d3a2..ea82d73 100644 ---- a/sysdef.h -+++ b/sysdef.h -@@ -8,12 +8,7 @@ - #include <sys/param.h> - #include <sys/queue.h> - --/* necesarry to get asprintf & friends with glibc XXX doesn't work for some -- * mysterious reason! */ --#ifdef __GLIBC__ --# define _GNU_SOURCE --# define __USE_GNU --#endif -+#define _GNU_SOURCE - - #if defined(__APPLE__) || defined(__FreeBSD__) - # define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX -@@ -25,10 +20,15 @@ - #include <string.h> - #include <errno.h> - #include <signal.h> -+#include <fcntl.h> - - #define KBLOCK 8192 /* Kill grow. */ - #define GOOD 0 /* Good exit status. */ - -+#ifndef DEFFILEMODE /* 4.4BSD extension. */ -+#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) -+#endif -+ - typedef int RSIZE; /* Type for file/region sizes */ - typedef short KCHAR; /* Type for internal keystrokes */ - |