From 661314f36ee76d3832d1153e76306e02eede94ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Sat, 16 Jan 2016 04:40:34 +0100
Subject: configure.ac: add some checks for Haiku


diff --git a/configure.ac b/configure.ac
index 3a042ba..2d6e102 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,8 @@ AC_CHECK_HEADERS([sys/filio.h sys/select.h sys/ioctl.h sys/socket.h])
 # Checks for typedefs, structures, and compiler characteristics.
 
 # Checks for library functions.
+AC_SEARCH_LIBS(issetugid, [bsd])
+AC_SEARCH_LIBS(getresuid, [bsd])
 AC_CHECK_FUNCS([strtol seteuid])
 AC_REPLACE_FUNCS([reallocarray])
 # Used in lcFile.c (see also --enable-xlocaledir settings below)
@@ -199,6 +201,9 @@ AC_ARG_ENABLE(xthreads,
               [xthreads=$enableval],[xthreads=yes])
 
 AC_CHECK_LIB(c, getpwuid_r, [mtsafeapi="yes"], [mtsafeapi="no"])
+if test "x$mtsafeapi" = xno; then
+	AC_CHECK_LIB(root, getpwuid_r, [mtsafeapi="yes"], [mtsafeapi="no"])
+fi
 
 case x$xthreads in
 xyes)
@@ -212,7 +217,9 @@ xyes)
 	;;
 esac
 
-AC_CHECK_LIB(c, pthread_self, [thrstubs="no"], [thrstubs="yes"])
+AC_CHECK_LIB(c, pthread_self, [thrstubs="no"], [
+	AC_CHECK_LIB(root, pthread_self, [thrstubs="no"], [thrstubs="yes"])
+])
 AM_CONDITIONAL(THRSTUBS, test x$thrstubs = xyes)
 
 # XXX incomplete, please fill this in
-- 
2.24.0


From 73bc1abc95b33ac17ec2cdd0173827fad82dad6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Sat, 16 Jan 2016 04:37:11 +0100
Subject: gcc2 initializer


diff --git a/src/Iconify.c b/src/Iconify.c
index 9da4165..7b1d4e2 100644
--- a/src/Iconify.c
+++ b/src/Iconify.c
@@ -78,9 +78,10 @@ Status XIconifyWindow (
             .window = w,
             .message_type = prop,
             .format = 32,
-            .data.l[0] = IconicState
         };
-        Window root = RootWindow (dpy, screen);
+        Window root;
+        ev.data.l[0] = IconicState;
+        root = RootWindow (dpy, screen);
 
         return (XSendEvent (dpy, root, False,
                             SubstructureRedirectMask|SubstructureNotifyMask,
-- 
2.24.0


From 22b159cc4df4b6dd9a5481a2337ddc3a2624ca9e Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 29 Jul 2018 15:56:09 +0200
Subject: remove xml files preventing a full build


diff --git a/configure.ac b/configure.ac
index 2d6e102..344a41c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -380,11 +380,10 @@ locales="\
  iso8859-15   iso8859-2   iso8859-3   iso8859-4    iso8859-5    iso8859-6 \
  iso8859-7    iso8859-8   iso8859-9   iso8859-9e   ja           ja.JIS \
  ja_JP.UTF-8  ja.SJIS     km_KH.UTF-8 ko           koi8-c       koi8-r \
- koi8-u       ko_KR.UTF-8 microsoft-cp1251         microsoft-cp1255 \
- microsoft-cp1256         mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
+ koi8-u       ko_KR.UTF-8 mulelao-1   nokhchi-1    pt_BR.UTF-8  pt_PT.UTF-8 \
  ru_RU.UTF-8  sr_CS.UTF-8 tatar-cyr   th_TH        th_TH.UTF-8  tscii-0 \
- vi_VN.tcvn   vi_VN.viscii            zh_CN        zh_CN.gb18030 \
- zh_CN.gbk    zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
+ vi_VN.tcvn   vi_VN.viscii            zh_CN \
+ zh_CN.UTF-8 zh_HK.big5  zh_HK.big5hkscs           zh_HK.UTF-8 \
  zh_TW        zh_TW.big5  zh_TW.UTF-8"
 AC_SUBST(locales)
 
-- 
2.24.0

