From 8fb77e639d1c936f92f3e201d57f5fac91d592a6 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Tue, 10 Apr 2018 14:04:07 +0100 Subject: [PATCH] Ensure to set `_GNU_SOURCE` for POSIX compliance with signals The systemd bus headers aren't setting a POSIX compliance level so we define the catch-all to ensure the build doesn't error out, as seen with issue #3. This is due to the reliance of `siginfo_t`, which requires a minimum POSIX level of `199309L` when using glibc. Signed-off-by: Ikey Doherty --- daemon/dbus_messaging.c | 2 ++ lib/client_impl.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/daemon/dbus_messaging.c b/daemon/dbus_messaging.c index 5c48aa0..96d8f80 100644 --- a/daemon/dbus_messaging.c +++ b/daemon/dbus_messaging.c @@ -29,6 +29,8 @@ POSSIBILITY OF SUCH DAMAGE. */ +#define _GNU_SOURCE + #include "dbus_messaging.h" #include "daemonize.h" #include "gamemode.h" diff --git a/lib/client_impl.c b/lib/client_impl.c index 2b76c84..822fb26 100644 --- a/lib/client_impl.c +++ b/lib/client_impl.c @@ -28,6 +28,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + +#define _GNU_SOURCE + #include #include #include