summaryrefslogtreecommitdiff
path: root/bus/at-spi-bus-launcher.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2018-08-10 16:15:35 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2018-08-10 16:15:35 +0200
commit2e449f62a9f6a8a3f47e0819b1a0af24d1caee27 (patch)
tree0d352bdc5f9b81cc021cdafa1f46c0cf76a9f391 /bus/at-spi-bus-launcher.c
parent1948f94335dc042755d5f00a05fcc9ea5134dd82 (diff)
downloadat-spi2-core-2e449f62a9f6a8a3f47e0819b1a0af24d1caee27.tar.gz
bus-launch: use __linux__ over __linux
The canonical way to check for linux support is '__linux__', not '__linux'. Particularly, on ppc64le '__linux' is not defined and the build will fail. For reference, see: https://sourceforge.net/p/predef/wiki/OperatingSystems/
Diffstat (limited to 'bus/at-spi-bus-launcher.c')
-rw-r--r--bus/at-spi-bus-launcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 5d58dff8..7572cb67 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -25,7 +25,7 @@
#include <unistd.h>
#include <string.h>
#include <signal.h>
-#ifdef __linux
+#ifdef __linux__
#include <sys/prctl.h>
#include <sys/socket.h>
#include <sys/un.h>
@@ -278,7 +278,7 @@ setup_bus_child_daemon (gpointer data)
close (app->pipefd[1]);
/* On Linux, tell the bus process to exit if this process goes away */
-#ifdef __linux
+#ifdef __linux__
prctl (PR_SET_PDEATHSIG, 15);
#endif
}