summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2021-06-27 12:17:08 +0200
committerChristian Persch <chpe@src.gnome.org>2021-06-27 12:17:35 +0200
commit0e069018082d9736e15fe8ba93a47a0f4a787e39 (patch)
tree3f8c8d723ffcf921e9e57d9c7d9cf9d16df66e71
parent9b9e0c407b1907fa882c247975821e52ceabc2db (diff)
downloadvte-0e069018082d9736e15fe8ba93a47a0f4a787e39.tar.gz
build: Fix build on non-linux systems
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2501 (cherry picked from commit 674f864269d0842376752487f29bfdddc8c7ec9f)
-rw-r--r--src/missing.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/missing.hh b/src/missing.hh
index 80ffe355..e5a58727 100644
--- a/src/missing.hh
+++ b/src/missing.hh
@@ -21,11 +21,14 @@
#include <csignal>
#include <fcntl.h>
+
+#ifdef __linux__
#include <sys/syscall.h>
#if defined(__mips__) || defined(__mips64__)
#include <asm/sgidefs.h>
#endif
+#endif
/* NSIG isn't in POSIX, so if it doesn't exist use this here. See bug #759196 */
#ifndef NSIG