Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
--- tmux-2.2/etc/config.sub.orig	2016-04-11 02:01:16.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
+++ tmux-2.2/etc/config.sub	2016-06-24 09:22:29.999927100 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
@@ -804,6 +804,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	microblaze*)
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 		basic_machine=microblaze-xilinx
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 		;;
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
+	midipix*)
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
+		basic_machine=x86_64-pc
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
+		os=-midipix
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
+		;;
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	mingw64)
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 		basic_machine=x86_64-pc
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 		os=-mingw64
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
@@ -1384,7 +1388,7 @@
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	      | -chorusos* | -chorusrdb* | -cegcc* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
-	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
+	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
Lucio Andrés Illanes Albornoz (arab, vxp) 8defff
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
--- tmux-2.2/configure.orig	2016-04-11 02:01:19.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+++ tmux-2.2/configure	2016-06-24 12:56:52.685289900 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
@@ -3664,18 +3664,6 @@
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 $as_echo "$ac_cv_prog_cc_g" >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 if test "$ac_test_CFLAGS" = set; then
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
   CFLAGS=$ac_save_CFLAGS
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-elif test $ac_cv_prog_cc_g = yes; then
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-  if test "$GCC" = yes; then
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-    CFLAGS="-g -O2"
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-  else
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-    CFLAGS="-g"
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-  fi
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-else
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-  if test "$GCC" = yes; then
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-    CFLAGS="-O2"
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-  else
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-    CFLAGS=
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-  fi
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 fi
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
--- tmux-2.2/Makefile.in.orig	2016-04-11 02:01:16.000000000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+++ tmux-2.2/Makefile.in	2016-06-24 12:58:45.526157800 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
@@ -94,10 +94,10 @@
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 # glibc as usual does things ass-backwards and hides useful things by default,
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 # so everyone has to add this.
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-@IS_GLIBC_TRUE@am__append_1 = -D_GNU_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+am__append_1 = -D_GNU_SOURCE
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 # Set flags for gcc.
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
-@IS_GCC_TRUE@am__append_2 = -std=gnu99 -O2
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+@IS_GCC_TRUE@am__append_2 = -std=gnu99
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 @IS_DEBUG_TRUE@@IS_GCC_TRUE@am__append_3 = -g -Wno-long-long -Wall -W \
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 @IS_DEBUG_TRUE@@IS_GCC_TRUE@	-Wnested-externs -Wformat=2 \
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 @IS_DEBUG_TRUE@@IS_GCC_TRUE@	-Wmissing-prototypes \
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
--- tmux-2.2/tmux.c.orig	2016-03-05 18:55:49.000000000 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+++ tmux-2.2/tmux.c	2016-06-24 13:00:39.079504000 +0200
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
@@ -133,10 +133,12 @@
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 		errno = ENOTDIR;
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 		goto fail;
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 	}
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+#if 0
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 	if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 		errno = EACCES;
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 		goto fail;
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 	}
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
+#endif
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 	if (realpath(base, resolved) == NULL)
Lucio Andrés Illanes Albornoz (arab, vxp) d1fb57
 		strlcpy(resolved, base, sizeof resolved);