Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
diff -ru ksh-openbsd-20180115.orig/history.c ksh-openbsd-20180115/history.c
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
--- ksh-openbsd-20180115.orig/history.c	2018-01-15 23:04:15.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+++ ksh-openbsd-20180115/history.c	2018-04-14 15:31:50.346308024 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
@@ -28,6 +28,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 #include "vis.h"
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 #include "sh.h"
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+#ifndef F_EXLCK
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+#define F_EXLCK 4
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 #define timespeccmp(tsp, usp, cmp)		\
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	(((tsp)->tv_sec == (usp)->tv_sec) ?	\
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 		((tsp)->tv_nsec cmp (usp)->tv_nsec) :	\
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
diff -ru ksh-openbsd-20180115.orig/Makefile ksh-openbsd-20180115/Makefile
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
--- ksh-openbsd-20180115.orig/Makefile	2018-01-15 23:04:15.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+++ ksh-openbsd-20180115/Makefile	2018-04-14 16:03:43.040414391 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
@@ -22,12 +22,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 CDIAGFLAGS+=	-Wshadow
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 CDIAGFLAGS+=	-Wdeclaration-after-statement
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
-CFLAGS +=	$(CDIAGFLAGS) `getconf LFS_CFLAGS` -DEMACS -DVI
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+CFLAGS +=	$(CDIAGFLAGS) `getconf LFS_CFLAGS` -D_GNU_SOURCE -DEMACS -DVI
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 LDADD +=	-lbsd
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 $(PROG): $(OBJS)
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
-	$(CC) -o $(PROG) $(CFLAGS) $(LDADD) \
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
-		$(OBJS)
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+	$(CC) -o $(PROG) $(CFLAGS) \
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+		$(OBJS) $(LDADD)
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 all: $(PROG)
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
@@ -37,7 +37,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 install:
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	install -m755 -d $(BINDIR)
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
-	install -m755 --strip --no-target-directory ksh $(BINDIR)/pdksh
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+	install -m755 --no-target-directory ksh $(BINDIR)/pdksh
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	install -m755 -d $(MANDIR)/man1
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	install -m644 --no-target-directory ksh.1 $(MANDIR)/man1/pdksh.1
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	install -m644 --no-target-directory sh.1 $(MANDIR)/man1/pdksh-sh.1
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
diff -ru ksh-openbsd-20180115.orig/vis.c ksh-openbsd-20180115/vis.c
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
--- ksh-openbsd-20180115.orig/vis.c	2018-01-15 23:04:15.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+++ ksh-openbsd-20180115/vis.c	2018-04-14 15:38:41.605684906 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
@@ -139,7 +139,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	*dst = '\0';
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	return (dst);
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
-DEF_WEAK(vis);
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+//DEF_WEAK(vis);
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 /*
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
  * strvis, strnvis, strvisx - visually encode characters from src into dst
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
@@ -165,7 +165,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	*dst = '\0';
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 	return (dst - start);
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
-DEF_WEAK(strvis);
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
+//DEF_WEAK(strvis);
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 int
Lucio Andrés Illanes Albornoz (arab, vxp) 98bbb0
 strnvis(char *dst, const char *src, size_t siz, int flag)