[gvfs] build: Fix login_tty detection on systems without libutil
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] build: Fix login_tty detection on systems without libutil
- Date: Tue, 11 Feb 2020 16:49:13 +0000 (UTC)
commit 6531d3f7359ca8034c6a2b40a0087fe605e0cd8f
Author: Niveditha Rau <niveditha rau oracle com>
Date: Thu Feb 6 20:11:21 2020 -0800
build: Fix login_tty detection on systems without libutil
login_tty function is available on Solaris, but libutil isn't there. Let's
update the code to make the detection work also if libutil is not available.
meson.build | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index b5862d3a..1a4995b8 100644
--- a/meson.build
+++ b/meson.build
@@ -84,8 +84,7 @@ have_openpty = cc.has_function('openpty', dependencies: util_dep)
config_h.set('HAVE_OPENPTY', have_openpty,
description: 'Define if you have the openpty function.')
-config_h.set('HAVE_LOGIN_TTY', util_dep.found() and cc.has_function('login_tty', dependencies: util_dep),
- description: 'Whether login_tty is available')
+config_h.set('HAVE_LOGIN_TTY', cc.has_function('login_tty', dependencies: util_dep), description: 'Whether
login_tty is available')
# headers
check_headers = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]