Stephen Gallagher e128e1
From 443e46d2d9d29cb9d20192e4978eb633bbbcc9b4 Mon Sep 17 00:00:00 2001
David Herrmann 3af577
From: David Herrmann <dh.herrmann@gmail.com>
David Herrmann 3af577
Date: Fri, 10 Aug 2018 16:35:31 +0200
Stephen Gallagher e128e1
Subject: [PATCH 2/2] bus-launch: use __linux__ over __linux
David Herrmann 3af577
David Herrmann 3af577
The canonical way to check for linux support is '__linux__', not
David Herrmann 3af577
'__linux'. Particularly, on ppc64le '__linux' is not defined and the
David Herrmann 3af577
build will fail.
David Herrmann 3af577
David Herrmann 3af577
For reference, see:
David Herrmann 3af577
David Herrmann 3af577
    https://sourceforge.net/p/predef/wiki/OperatingSystems/
David Herrmann 3af577
---
David Herrmann 3af577
 bus/at-spi-bus-launcher.c | 4 ++--
David Herrmann 3af577
 1 file changed, 2 insertions(+), 2 deletions(-)
David Herrmann 3af577
David Herrmann 3af577
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
Stephen Gallagher e128e1
index 354c04eec7ba1a1ee034a245ee25c0139c48a1e5..b65301def88c2ff8aa5d10ada67507d0201b0984 100644
David Herrmann 3af577
--- a/bus/at-spi-bus-launcher.c
David Herrmann 3af577
+++ b/bus/at-spi-bus-launcher.c
Stephen Gallagher e128e1
@@ -23,11 +23,11 @@
Stephen Gallagher e128e1
 #include "config.h"
Stephen Gallagher e128e1
 
David Herrmann 3af577
 #include <unistd.h>
David Herrmann 3af577
 #include <string.h>
David Herrmann 3af577
 #include <signal.h>
David Herrmann 3af577
-#ifdef __linux
David Herrmann 3af577
+#ifdef __linux__
David Herrmann 3af577
 #include <sys/prctl.h>
David Herrmann 3af577
 #include <sys/socket.h>
David Herrmann 3af577
 #include <sys/un.h>
Stephen Gallagher e128e1
 #endif
Stephen Gallagher e128e1
 #include <sys/wait.h>
Stephen Gallagher e128e1
@@ -275,11 +275,11 @@ setup_bus_child_daemon (gpointer data)
Stephen Gallagher e128e1
   close (app->pipefd[0]);
Stephen Gallagher e128e1
   dup2 (app->pipefd[1], 3);
David Herrmann 3af577
   close (app->pipefd[1]);
David Herrmann 3af577
 
David Herrmann 3af577
   /* On Linux, tell the bus process to exit if this process goes away */
David Herrmann 3af577
-#ifdef __linux
David Herrmann 3af577
+#ifdef __linux__
David Herrmann 3af577
   prctl (PR_SET_PDEATHSIG, 15);
Stephen Gallagher e128e1
 #endif
David Herrmann 3af577
 }
Stephen Gallagher e128e1
 
Stephen Gallagher e128e1
 static gboolean
David Herrmann 3af577
-- 
Stephen Gallagher e128e1
2.19.0.rc0
David Herrmann 3af577