From 3368b91de9a3b975ab9353ab5927e5140332219f Mon Sep 17 00:00:00 2001 From: Karl Linden Date: Sun, 13 Dec 2015 10:05:10 +0100 Subject: [PATCH] Check for ppoll() in toplevel wscript. --- linux/wscript | 3 --- wscript | 9 +++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/linux/wscript b/linux/wscript index 4cca9e0b..a6682544 100644 --- a/linux/wscript +++ b/linux/wscript @@ -1,9 +1,6 @@ #! /usr/bin/env python # encoding: utf-8 -def configure(conf): - conf.define('HAVE_PPOLL', 1 ) - def create_jack_driver_obj(bld, target, sources, uselib = None): driver = bld(features = ['c', 'cxx', 'cxxshlib', 'cshlib']) driver.env['cxxshlib_PATTERN'] = 'jack_%s.so' diff --git a/wscript b/wscript index 561373df..d2dccd5b 100644 --- a/wscript +++ b/wscript @@ -480,9 +480,14 @@ def configure(conf): # configure all auto options configure_auto_options(conf) + # Check for functions. + conf.check_cc( + function_name='ppoll', + header_name=['poll.h', 'signal.h'], + defines=['_GNU_SOURCE'], + mandatory=False) + conf.recurse('common') - if conf.env['IS_LINUX']: - conf.recurse('linux') if Options.options.dbus: conf.recurse('dbus') if conf.env['BUILD_JACKDBUS'] != True: