summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2018-04-12 08:21:44 +0200
committerOndrej Holy <oholy@redhat.com>2018-04-12 14:24:36 +0200
commitd47e70ec0e80296a20aa42fc9fbade37235c1c75 (patch)
tree0743547cf832d3c9c141d40801cf70942ac942d0
parent76ddb13258a9a62171aeae9625f9386ac75e5401 (diff)
downloadgvfs-d47e70ec0e80296a20aa42fc9fbade37235c1c75.tar.gz
build: Simplify openpty check
This prevents two messages for openpty in meson output and should be equal. https://bugzilla.gnome.org/show_bug.cgi?id=794365
-rw-r--r--meson.build5
1 files changed, 1 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index a1df5423..dd1ddfc0 100644
--- a/meson.build
+++ b/meson.build
@@ -72,10 +72,7 @@ config_h.set('HAVE_SOCKETPAIR', have_socketpair,
util_dep = cc.find_library('util', required: false)
config_h.set('HAVE_UTIL_H', cc.has_header('util.h', dependencies: util_dep))
-have_openpty = cc.has_function('openpty')
-if not have_openpty
- have_openpty = util_dep.found() and cc.has_function('openpty', dependencies: util_dep)
-endif
+have_openpty = cc.has_function('openpty', dependencies: util_dep)
config_h.set('HAVE_OPENPTY', have_openpty,
description: 'Define if you have the openpty function.')