From 34add293e316a2b8a7104666fe764be6adcc1b8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 24 Oct 2021 10:54:21 +0200
Subject: Haiku patches


diff --git a/libxo/libxo.c b/libxo/libxo.c
index 916a111..b794d21 100644
--- a/libxo/libxo.c
+++ b/libxo/libxo.c
@@ -336,6 +336,8 @@ struct xo_handle_s {
 #define XF_ENC_UTF8	2	/* UTF-8 */
 #define XF_ENC_LOCALE	3	/* Current locale */
 
+typedef int64_t quad_t;
+
 /*
  * A place to parse printf-style format flags for each field
  */
diff --git a/libxo/xo_syslog.c b/libxo/xo_syslog.c
index 62da181..2d8212a 100644
--- a/libxo/xo_syslog.c
+++ b/libxo/xo_syslog.c
@@ -41,7 +41,11 @@
 #include <sys/cdefs.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+#ifdef _HAVE_SYS_SYSLOG
 #include <sys/syslog.h>
+#else
+#include <syslog.h>
+#endif
 #include <sys/uio.h>
 #include <sys/un.h>
 #include <netdb.h>
@@ -58,7 +62,9 @@
 #include <stdarg.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#ifdef _HAVE_SYS_SYSCTL
 #include <sys/sysctl.h>
+#endif
 
 #include "xo_config.h"
 #include "xo.h"
-- 
2.30.2

