From 87e1ccc6bf997b8141008a1134a2229b41bb0cc6 Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 8 Sep 2017 17:37:01 +0200 Subject: [PATCH] Fix build on various architectures --- src/util/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/common.c b/src/util/common.c index 671a42d..510c84b 100644 --- a/src/util/common.c +++ b/src/util/common.c @@ -397,6 +397,7 @@ pid_t tint_exec(const char *command, chdir(dir); close_all_fds(); if (terminal) { +#if !defined(__OpenBSD__) fprintf(stderr, "tint2: executing in x-terminal-emulator: %s\n", command); wordexp_t words; words.we_offs = 2; @@ -405,6 +406,7 @@ pid_t tint_exec(const char *command, words.we_wordv[1] = (char*)"-e"; execvp("x-terminal-emulator", words.we_wordv); } +#endif fprintf(stderr, "tint2: could not execute command in x-terminal-emulator: %s, executting in shell\n", command); } execlp("sh", "sh", "-c", command, NULL);