From ae4346a9d35315279ebc0711a6508ab7228b23bd Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 5 Aug 2014 16:50:29 +0000
Subject: haiku patch


diff --git a/configure.ac b/configure.ac
index d9a1670..2cb5df7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -744,6 +744,7 @@ fi
 AC_SEARCH_LIBS(setsockopt, [socket], ,
 	[AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])])
 AC_SEARCH_LIBS(setsockopt, [nsl])
+AC_SEARCH_LIBS(socket, [network])
 
 ##################################
 #### Checks for header files. ####
-- 
1.8.3.4


From 8dabbbf3e4aad2c9654e30a86d03da2022a6e220 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 6 Aug 2014 22:08:04 +0000
Subject: gcc2 patch


diff --git a/src/hwf-x86.c b/src/hwf-x86.c
index 7ee246d..27dbf5f 100644
--- a/src/hwf-x86.c
+++ b/src/hwf-x86.c
@@ -103,7 +103,7 @@ get_xgetbv(void)
   unsigned int t_eax;
 
   asm volatile
-    ("xgetbv\n\t"
+    (".byte 0x0f, 0x01, 0xd0\n\t"
      : "=a" (t_eax)
      : "c" (0)
     );
-- 
1.8.3.4

