<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From fcf8f7c7aa1b0484486a7838403694df081b8833 Mon Sep 17 00:00:00 2001
From: barracuda156 &lt;vital.had@gmail.com&gt;
Date: Fri, 26 May 2023 19:18:44 +0800
Subject: [PATCH 4/5] Fix macOS linking

diff --git src/notify.c src/notify.c
index 8863ed1..0cefb7a 100644
--- src/notify.c
+++ src/notify.c
@@ -39,9 +39,6 @@
 
 #if defined(AUDIO) || defined(SOUND_NOTIFY)
 #ifdef __APPLE__
-#include &lt;OpenAL/al.h&gt;
-#include &lt;OpenAL/alc.h&gt;
-#else
 #include &lt;AL/al.h&gt;
 #include &lt;AL/alc.h&gt;
 /* compatibility with older versions of OpenAL */
diff --git src/x11focus.c src/x11focus.c
index 0c4b1af..6faa0d2 100644
--- src/x11focus.c
+++ src/x11focus.c
@@ -8,8 +8,6 @@
 
 #include "x11focus.h"
 
-#ifndef __APPLE__
-
 #include &lt;X11/Xlib.h&gt;
 
 static long unsigned int focused_window_id(const X11_Focus *focus)
@@ -64,5 +62,3 @@
     XCloseDisplay(focus-&gt;display);
     XUnlockDisplay(focus-&gt;display);
 }
-
-#endif /* !__APPLE__ */

--- src/x11focus.h	2024-03-26 21:52:30.000000000 +0800
+++ src/x11focus.h	2024-03-29 18:12:12.000000000 +0800
@@ -11,7 +11,6 @@
 
 #include &lt;stdbool.h&gt;
 
-#ifndef __APPLE__
 #include &lt;X11/Xlib.h&gt;
 
 struct X11_Focus {
@@ -25,5 +24,4 @@
 void terminate_x11focus(X11_Focus *focus);
 bool is_focused(const X11_Focus *focus);
 
-#endif /* __APPLE__ */
 #endif /* X11FOCUS */
</pre></body></html>