From fcf8f7c7aa1b0484486a7838403694df081b8833 Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
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 <OpenAL/al.h>
-#include <OpenAL/alc.h>
-#else
 #include <AL/al.h>
 #include <AL/alc.h>
 /* 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 <X11/Xlib.h>
 
 static long unsigned int focused_window_id(const X11_Focus *focus)
@@ -64,5 +62,3 @@
     XCloseDisplay(focus->display);
     XUnlockDisplay(focus->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 <stdbool.h>
 
-#ifndef __APPLE__
 #include <X11/Xlib.h>
 
 struct X11_Focus {
@@ -25,5 +24,4 @@
 void terminate_x11focus(X11_Focus *focus);
 bool is_focused(const X11_Focus *focus);
 
-#endif /* __APPLE__ */
 #endif /* X11FOCUS */
