Lucio Andrés Illanes Albornoz fb15df
--- apr-1.6.5/network_io/unix/sendrecv.c.orig	2013-10-21 11:57:36.000000000 +0000
Lucio Andrés Illanes Albornoz fb15df
+++ apr-1.6.5/network_io/unix/sendrecv.c	2017-11-11 18:37:41.568000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
@@ -252,7 +252,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 /* Define a structure to pass in when we have a NULL header value */
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 static apr_hdtr_t no_hdtr;
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-#if (defined(__linux__) || defined(__GNU__)) && defined(HAVE_WRITEV)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#if (defined(__linux__) || defined(__GNU__)) || defined(__midipix__) && defined(HAVE_WRITEV)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
                                  apr_hdtr_t *hdtr, apr_off_t *offset,
Lucio Andrés Illanes Albornoz fb15df
--- apr-1.6.5/include/private/apr_escape_test_char.h.orig	2017-11-11 18:37:41.568000000 +0000
Lucio Andrés Illanes Albornoz fb15df
+++ apr-1.6.5/include/private/apr_escape_test_char.h	2017-11-11 18:37:41.568000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
@@ -0,0 +1,25 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+/* this file is automatically generated by gen_test_char, do not edit. "make include/private/apr_escape_test_char.h" to regenerate. */
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_SHELL_CMD     (1)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_PATH_SEGMENT  (2)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_OS_ESCAPE_PATH       (4)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_ECHO          (8)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_URLENCODED    (16)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_XML           (32)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_LDAP_DN       (64)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+#define T_ESCAPE_LDAP_FILTER   (128)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+static const unsigned char test_char_table[256] = {
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    224,222,222,222,222,222,222,222,222,222,223,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,6,16,127,22,17,22,49,17,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    145,145,129,80,80,0,0,18,0,0,0,0,0,0,0,0,0,0,16,87,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    119,16,119,23,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    0,0,0,0,0,0,0,0,0,0,0,23,223,23,23,0,23,0,0,0,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    0,0,0,23,23,23,17,222,222,222,222,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+    222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222 
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+};
Lucio Andrés Illanes Albornoz fb15df
--- apr-1.6.5/Makefile.in.orig	2017-05-31 15:04:18.000000000 +0000
Lucio Andrés Illanes Albornoz fb15df
+++ apr-1.6.5/Makefile.in	2017-11-11 18:37:41.568000000 +0000
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
@@ -46,8 +46,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 CLEAN_TARGETS = apr-config.out apr.exp exports.c export_vars.c .make.dirs \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	build/apr_rules.out tools/gen_test_char@EXEEXT@ \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	tools/gen_test_char.o tools/gen_test_char.lo \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	include/private/apr_escape_test_char.h
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+	tools/gen_test_char.o tools/gen_test_char.lo
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 DISTCLEAN_TARGETS = config.cache config.log config.status \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	include/apr.h include/arch/unix/apr_private.h \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	libtool $(APR_CONFIG) build/apr_rules.mk apr.pc \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
@@ -74,7 +73,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	sed -e 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' -e 's,^\(top_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 install: $(TARGETS)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(installbuilddir) \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
+	$(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 		     $(DESTDIR)$(libdir)/pkgconfig $(DESTDIR)$(includedir)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	$(INSTALL_DATA) $(top_blddir)/include/apr.h $(DESTDIR)$(includedir)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	for f in $(top_srcdir)/include/apr_*.h; do \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
@@ -83,16 +82,6 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	$(LIBTOOL) --mode=install $(INSTALL) -m 755 $(TARGET_LIB) $(DESTDIR)$(libdir)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	$(INSTALL_DATA) apr.exp $(DESTDIR)$(libdir)/apr.exp
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	$(INSTALL_DATA) apr.pc $(DESTDIR)$(libdir)/pkgconfig/$(APR_PCFILE)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	for f in libtool shlibtool; do \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	    if test -f $${f}; then $(INSTALL) -m 755 $${f} $(DESTDIR)$(installbuilddir); fi; \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	done
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(INSTALL) -m 755 $(top_srcdir)/build/mkdir.sh $(DESTDIR)$(installbuilddir)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	for f in make_exports.awk make_var_export.awk; do \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	    $(INSTALL_DATA) $(top_srcdir)/build/$${f} $(DESTDIR)$(installbuilddir); \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	done
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(INSTALL_DATA) build/apr_rules.out $(DESTDIR)$(installbuilddir)/apr_rules.mk
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(INSTALL_DATA) $(top_srcdir)/build/apr_common.m4 $(DESTDIR)$(installbuilddir)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(INSTALL_DATA) $(top_srcdir)/build/find_apr.m4 $(DESTDIR)$(installbuilddir)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	$(INSTALL) -m 755 apr-config.out $(DESTDIR)$(bindir)/$(APR_CONFIG)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	@if [ $(INSTALL_SUBDIRS) != "none" ]; then \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
             for i in $(INSTALL_SUBDIRS); do \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
@@ -131,18 +120,6 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 etags:
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	etags `find . -name '*.[ch]'`
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-OBJECTS_gen_test_char = tools/gen_test_char.lo $(LOCAL_LIBS)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-tools/gen_test_char.lo: tools/gen_test_char.c
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(APR_MKDIR) tools
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(LT_COMPILE)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS)
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	$(APR_MKDIR) include/private
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-	tools/gen_test_char@EXEEXT@ > $@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
-
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d
 	    @LT_NO_INSTALL@ $(ALL_LDFLAGS) -o $@
Lucio Andrés Illanes Albornoz (arab, vxp) 7f445d