From d8df597d25abda96348490e263d450caf7a788d2 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Sat, 19 Aug 2023 10:52:42 +0800 Subject: [PATCH 2/3] Fix environ for Apple Fixing https://github.com/MusicPlayerDaemon/ncmpc/commit/525ed73404011753f15f78b99b472f81d6dd8342 --- src/plugin.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git src/plugin.cxx src/plugin.cxx index 719aeab0..8932ce17 100644 --- src/plugin.cxx +++ src/plugin.cxx @@ -23,6 +23,9 @@ #include #ifdef __APPLE__ +#include +#define environ (*_NSGetEnviron()) +#else extern char **environ; #endif